aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/serd/serd.h b/serd/serd.h
index e1d4bfa5..52b78097 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -46,9 +46,9 @@
#ifdef __cplusplus
extern "C" {
-# if defined(__clang__)
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
+# if defined(__GNUC__)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
# endif
#endif
@@ -1089,8 +1089,8 @@ serd_writer_finish(SerdWriter* writer);
*/
#ifdef __cplusplus
-# if defined(__clang__)
-# pragma clang diagnostic pop
+# if defined(__GNUC__)
+# pragma GCC diagnostic pop
# endif
} /* extern "C" */
#endif