Skip to content

Commit 4b354d3

Browse files
committed
win32: use GCC noinline on MinGW
1 parent c599b8d commit 4b354d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/trusted/service_runtime/sel_ldr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ void NaClVmIoPendingCheck_mu(struct NaClApp *nap,
912912
* We need its symbol in the symbol table so don't inline it.
913913
* TODO(dje): add some explanation for the non-GDB person.
914914
*/
915-
#if NACL_WINDOWS
915+
#if NACL_WINDOWS && defined(_MSVC_VER)
916916
__declspec(dllexport noinline)
917917
#endif
918918
#ifdef __GNUC__

src/trusted/validator_ragel/decoding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "native_client/src/include/build_config.h"
2020
#include "native_client/src/trusted/validator_ragel/decoder.h"
2121

22-
#if NACL_WINDOWS && !defined(__GNUC__)
22+
#if NACL_WINDOWS && defined(_MSC_VER)
2323
# define FORCEINLINE __forceinline
2424
#else
2525
# define FORCEINLINE __inline __attribute__ ((always_inline))

0 commit comments

Comments
 (0)