aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/StormPort.h4
-rw-r--r--test/StormTest.cpp7
2 files changed, 5 insertions, 6 deletions
diff --git a/src/StormPort.h b/src/StormPort.h
index 93d7139..40e418c 100644
--- a/src/StormPort.h
+++ b/src/StormPort.h
@@ -148,6 +148,10 @@
typedef LONG * PLONG;
typedef DWORD * LPDWORD;
typedef BYTE * LPBYTE;
+ typedef const char * LPCTSTR;
+ typedef const char * LPCSTR;
+ typedef char * LPTSTR;
+ typedef char * LPSTR;
#ifdef PLATFORM_32BIT
#define _LZMA_UINT32_IS_ULONG
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index d63971d..dc20920 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -28,13 +28,8 @@
#pragma comment(lib, "winmm.lib")
#endif
-#ifdef PLATFORM_LINUX
+#ifndef PLATFORM_WINDOWS
#include <dirent.h>
-
-typedef const char * LPCTSTR;
-typedef const char * LPCSTR;
-typedef char * LPTSTR;
-typedef char * LPSTR;
#endif
//------------------------------------------------------------------------------