+added platform dependent macros for emscripten.

This commit is contained in:
Wang Renxin 2018-05-13 10:07:04 +08:00
parent fb6d76fe9a
commit 74971e5df7
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,6 @@
May. 13 2018
Added platform dependent macros for Emscripten
May. 9 2018 May. 9 2018
Fixed a crash bug in invalid conditional expression with class member, thanks to AaBc for pointing it out Fixed a crash bug in invalid conditional expression with class member, thanks to AaBc for pointing it out
Fixed a wrong error with the VAL statement Fixed a wrong error with the VAL statement

View File

@ -30,7 +30,9 @@
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#if defined ARDUINO #if defined __EMSCRIPTEN__
# define MB_CP_EMSCRIPTEN
#elif defined ARDUINO
# define MB_CP_ARDUINO # define MB_CP_ARDUINO
#elif defined __BORLANDC__ #elif defined __BORLANDC__
# define MB_CP_BORLANDC # define MB_CP_BORLANDC
@ -62,7 +64,9 @@ extern "C" {
# define MB_CP_UNKNOWN # define MB_CP_UNKNOWN
#endif /* Compiler dependent macro */ #endif /* Compiler dependent macro */
#if defined _WIN64 #if defined __EMSCRIPTEN__
# define MB_OS_HTML
#elif defined _WIN64
# define MB_OS_WIN # define MB_OS_WIN
# define MB_OS_WIN64 # define MB_OS_WIN64
#elif defined _WIN32 #elif defined _WIN32