From f0f124580a10c90cef8298c2647662c501703c98 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sat, 11 Nov 2017 11:26:06 +0100 Subject: + LPCTSTR for Linux+Mac --- src/StormPort.h | 4 ++++ test/StormTest.cpp | 7 +------ 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 - -typedef const char * LPCTSTR; -typedef const char * LPCSTR; -typedef char * LPTSTR; -typedef char * LPSTR; #endif //------------------------------------------------------------------------------ -- cgit v1.2.3