diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-09-04 10:52:33 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-09-04 10:52:33 +0200 |
commit | e18b7ffa4893aa1011bae52e6e7a8f1bfcc336d5 (patch) | |
tree | b771e3c0e258780cc413b0669b41f79153b86cc9 /newlib | |
parent | ff53f489fa2f7ddf4306fe256de5609ff7a131b0 (diff) | |
download | cygnal-e18b7ffa4893aa1011bae52e6e7a8f1bfcc336d5.tar.gz cygnal-e18b7ffa4893aa1011bae52e6e7a8f1bfcc336d5.tar.bz2 cygnal-e18b7ffa4893aa1011bae52e6e7a8f1bfcc336d5.zip |
stdio.h: Don't define unlocked macros using static inline on C++cygwin-2_9_0-release
In C++, the usage of static inline functions for getchar_unlocked and
putchar_unlocked may result in error messages like
error: ‘_putchar_unlocked’ was not declared in this scope
Fix this by not using the _getchar_unlocked and _putchar_unlocked
macros in C++.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 331a1cf07..ee0f612c4 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -762,12 +762,12 @@ _putchar_unlocked(int _c) #define getchar() _getchar_unlocked() #define putchar(_c) _putchar_unlocked(_c) #endif /* __SINGLE_THREAD__ */ -#endif /* __cplusplus */ #if __MISC_VISIBLE || __POSIX_VISIBLE #define getchar_unlocked() _getchar_unlocked() #define putchar_unlocked(_c) _putchar_unlocked(_c) #endif +#endif /* __cplusplus */ #if __MISC_VISIBLE /* fast always-buffered version, true iff error */ |