Fixes win_build and VS/cmake build problems
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "text.h"
|
||||
#include "enumstxt.h"
|
||||
|
||||
#ifdef WINDOWS
|
||||
#ifdef _WIN32
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
||||
@@ -19,16 +19,8 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
//*** Need to define WINDOWS to use the getTmpName function ***//
|
||||
// --- define WINDOWS
|
||||
#undef WINDOWS
|
||||
//*** For the Windows SDK _tempnam function ***//
|
||||
#ifdef _WIN32
|
||||
#define WINDOWS
|
||||
#endif
|
||||
#ifdef __WIN32__
|
||||
#define WINDOWS
|
||||
#endif
|
||||
#ifdef WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -19,9 +19,7 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#undef WINDOWS
|
||||
#ifdef _WIN32
|
||||
#define WINDOWS
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user