Give define value (of 1) to PLATFORM defs to match the same-name defs in some SDKs.
This commit is contained in:
parent
609fa50763
commit
d83d72fd88
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#if defined WIN32 || defined WIN64
|
#if defined WIN32 || defined WIN64
|
||||||
#ifndef PLATFORM_WINDOWS
|
#ifndef PLATFORM_WINDOWS
|
||||||
#define PLATFORM_WINDOWS
|
#define PLATFORM_WINDOWS 1
|
||||||
#endif
|
#endif
|
||||||
#if !defined WIN32_LEAN_AND_MEAN
|
#if !defined WIN32_LEAN_AND_MEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
@ -64,14 +64,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#elif defined __linux__ || defined __APPLE__
|
#elif defined __linux__ || defined __APPLE__
|
||||||
#if defined __linux__
|
#if defined __linux__
|
||||||
# define PLATFORM_LINUX
|
# define PLATFORM_LINUX 1
|
||||||
# define PLATFORM_LIB_EXT "so"
|
# define PLATFORM_LIB_EXT "so"
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
# define PLATFORM_APPLE
|
# define PLATFORM_APPLE 1
|
||||||
# define PLATFORM_LIB_EXT "dylib"
|
# define PLATFORM_LIB_EXT "dylib"
|
||||||
#endif
|
#endif
|
||||||
#ifndef PLATFORM_POSIX
|
#ifndef PLATFORM_POSIX
|
||||||
# define PLATFORM_POSIX
|
# define PLATFORM_POSIX 1
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user