Skip to content

Commit f0f1245

Browse files
author
Ladislav Zezula
committed
+ LPCTSTR for Linux+Mac
1 parent 375da4d commit f0f1245

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/StormPort.h

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@
148148
typedef LONG * PLONG;
149149
typedef DWORD * LPDWORD;
150150
typedef BYTE * LPBYTE;
151+
typedef const char * LPCTSTR;
152+
typedef const char * LPCSTR;
153+
typedef char * LPTSTR;
154+
typedef char * LPSTR;
151155

152156
#ifdef PLATFORM_32BIT
153157
#define _LZMA_UINT32_IS_ULONG

test/StormTest.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@
2828
#pragma comment(lib, "winmm.lib")
2929
#endif
3030

31-
#ifdef PLATFORM_LINUX
31+
#ifndef PLATFORM_WINDOWS
3232
#include <dirent.h>
33-
34-
typedef const char * LPCTSTR;
35-
typedef const char * LPCSTR;
36-
typedef char * LPTSTR;
37-
typedef char * LPSTR;
3833
#endif
3934

4035
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)