Skip to content

Commit

Permalink
Prefer the __EMSCRIPTEN__ definition over EMSCRIPTEN (#18)
Browse files Browse the repository at this point in the history
"The preprocessor define EMSCRIPTEN is deprecated. Don't pass it to code
in strict mode. Code should use the define __EMSCRIPTEN__ instead."
https://github.com/emscripten-core/emscripten/blob/84a634167a1cd9e8c47d37a559688153a4ceace6/emcc.py#L887-L890
  • Loading branch information
kleisauke authored Nov 6, 2022
1 parent e0e40bb commit d0cf672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm32/ffitarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef enum ffi_abi {
FFI_WASM32, // "raw", no structures or varargs
FFI_WASM32_EMSCRIPTEN, // structures, varargs, and split 64-bit params
FFI_LAST_ABI,
#ifdef EMSCRIPTEN
#ifdef __EMSCRIPTEN__
FFI_DEFAULT_ABI = FFI_WASM32_EMSCRIPTEN
#else
FFI_DEFAULT_ABI = FFI_WASM32
Expand Down

0 comments on commit d0cf672

Please sign in to comment.