diff options
author | Ico Doornekamp <ico@pruts.nl> | 2020-01-09 17:27:42 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-09 17:27:42 +0100 |
commit | bb7273bc471da56a17b9fc10dafda71923a473ff (patch) | |
tree | 11aa5dcfbc8b164ceb613faf51a38914509ea00d | |
parent | 3f78873898a2ca6346ac7b4ca48b5625b431d981 (diff) | |
download | Nim-bb7273bc471da56a17b9fc10dafda71923a473ff.tar.gz |
Use '__noinline' instead of 'noinline' for N_NOINLINE gcc attribute, this prevents clashes with systems where 'noinline' might be already defined (#13089)
-rw-r--r-- | lib/nimbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 9bd2a808c..f61be7a5b 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -221,7 +221,7 @@ __AVR__ #define N_NOCONV_PTR(rettype, name) rettype (*name) #if defined(__GNUC__) || defined(__ICC__) -# define N_NOINLINE(rettype, name) rettype __attribute__((noinline)) name +# define N_NOINLINE(rettype, name) rettype __attribute__((__noinline__)) name #elif defined(_MSC_VER) # define N_NOINLINE(rettype, name) __declspec(noinline) rettype name #else |