mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
upd: [def] adjusting predefined macros
This commit is contained in:
parent
6617033a63
commit
3522061321
@ -10,8 +10,8 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#define LIBIMP_ imp
|
#define LIBIMP_ imp
|
||||||
#define LIBIMP_NAMESPACE_ LIBIMP_
|
#define LIBIMP_NAMESPACE_ :: LIBIMP_
|
||||||
#define LIBIMP_NAMESPACE_BEG_ namespace LIBIMP_NAMESPACE_ {
|
#define LIBIMP_NAMESPACE_BEG_ namespace LIBIMP_ {
|
||||||
#define LIBIMP_NAMESPACE_END_ }
|
#define LIBIMP_NAMESPACE_END_ }
|
||||||
|
|
||||||
LIBIMP_NAMESPACE_BEG_
|
LIBIMP_NAMESPACE_BEG_
|
||||||
|
|||||||
@ -24,6 +24,8 @@
|
|||||||
# define LIBIMP_OS_ANDROID
|
# define LIBIMP_OS_ANDROID
|
||||||
#elif defined(__linux__) || defined(__linux)
|
#elif defined(__linux__) || defined(__linux)
|
||||||
# define LIBIMP_OS_LINUX
|
# define LIBIMP_OS_LINUX
|
||||||
|
#elif defined(_POSIX_VERSION)
|
||||||
|
# define LIBIMP_OS_POSIX
|
||||||
#else
|
#else
|
||||||
# error "This OS is unsupported."
|
# error "This OS is unsupported."
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user