upd: [def] adjusting predefined macros

This commit is contained in:
mutouyun 2022-08-07 17:49:52 +08:00
parent 6617033a63
commit 3522061321
2 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,8 @@
#include <cstdint>
#define LIBIMP_ imp
#define LIBIMP_NAMESPACE_ LIBIMP_
#define LIBIMP_NAMESPACE_BEG_ namespace LIBIMP_NAMESPACE_ {
#define LIBIMP_NAMESPACE_ :: LIBIMP_
#define LIBIMP_NAMESPACE_BEG_ namespace LIBIMP_ {
#define LIBIMP_NAMESPACE_END_ }
LIBIMP_NAMESPACE_BEG_

View File

@ -24,6 +24,8 @@
# define LIBIMP_OS_ANDROID
#elif defined(__linux__) || defined(__linux)
# define LIBIMP_OS_LINUX
#elif defined(_POSIX_VERSION)
# define LIBIMP_OS_POSIX
#else
# error "This OS is unsupported."
#endif