Revert "tuklib_common: Define __has_warning if it is not defined."
This reverts commit 82e3c968bf
.
Macros in the reserved namespace (_foo or __foo) shouldn't be #defined
without a very good reason. Here the alternative would have been
to #define tuklib_has_warning(str) to an approriate value.
Also the tuklib_* files should stay namespace clean if possible.
This commit is contained in:
parent
8366cf8738
commit
2f78ecc593
|
@ -68,11 +68,4 @@
|
|||
# define TUKLIB_DOSLIKE 1
|
||||
#endif
|
||||
|
||||
// Clang has a macro to check if the compiler supports a certain warning.
|
||||
// If this macro is used with a compiler that does not support this macro
|
||||
// (like gcc), then it will cause a preprocessor error.
|
||||
#ifndef __has_warning
|
||||
# define __has_warning(warn) 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue