1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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:
Lasse Collin 2023-01-23 23:44:58 +02:00 committed by Jia Tan
parent 8366cf8738
commit 2f78ecc593

View file

@ -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