[General] Add __WINDOWS define

This commit is contained in:
Koncord 2017-05-03 14:44:16 +08:00
parent 47e6820f97
commit 8fa8b8d310

View file

@ -8,7 +8,11 @@
#include <string>
#include <sstream>
#ifdef _WIN32
#if (defined __WIN32__ || defined _WIN32 || defined WIN32)
#define __WINDOWS
#endif
#ifdef __WINDOWS
int setenv(const char *name, const char *value, int overwrite);
#endif