mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-12 13:50:08 -07:00
21 lines
966 B
Diff
21 lines
966 B
Diff
--- a/third_party/angle/src/common/debug.h 2019-06-02 17:59:16.698392030 -0000
|
|
+++ b/third_party/angle/src/common/debug.h 2019-06-02 17:59:48.738265672 -0000
|
|
@@ -248,7 +248,7 @@
|
|
# define EVENT(message, ...) (void(0))
|
|
#endif
|
|
|
|
-#if defined(COMPILER_GCC) || defined(__clang__)
|
|
+#if defined(__GNUC__) || defined(__clang__)
|
|
# define ANGLE_CRASH() __builtin_trap()
|
|
#else
|
|
# define ANGLE_CRASH() ((void)(*(volatile char *)0 = 0)), __assume(0)
|
|
@@ -336,7 +336,7 @@
|
|
# define ANGLE_ENABLE_STRUCT_PADDING_WARNINGS \
|
|
_Pragma("clang diagnostic push") _Pragma("clang diagnostic error \"-Wpadded\"")
|
|
# define ANGLE_DISABLE_STRUCT_PADDING_WARNINGS _Pragma("clang diagnostic pop")
|
|
-#elif defined(COMPILER_GCC)
|
|
+#elif defined(__GNUC__)
|
|
# define ANGLE_ENABLE_STRUCT_PADDING_WARNINGS \
|
|
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic error \"-Wpadded\"")
|
|
# define ANGLE_DISABLE_STRUCT_PADDING_WARNINGS _Pragma("GCC diagnostic pop")
|