Skip to content

Commit

Permalink
Use '__noinline' instead of 'noinline' for N_NOINLINE gcc attribute, …
Browse files Browse the repository at this point in the history
…this prevents clashes with systems where 'noinline' might be already defined (#13089)
  • Loading branch information
zevv authored and Araq committed Jan 9, 2020
1 parent 3f78873 commit bb7273b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nimbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb7273b

Please sign in to comment.