Browse code

emu: shut up -Wtypedef-redefinition with SDL headers when using clang

Sigrid Solveig Haflínudóttir authored on 25/12/2021 20:27:23
Showing 1 changed files
... ...
@@ -4,12 +4,15 @@
4 4
 #include "uxn.h"
5 5
 
6 6
 #pragma GCC diagnostic push
7
+#pragma clang diagnostic push
7 8
 #pragma GCC diagnostic ignored "-Wpedantic"
9
+#pragma clang diagnostic ignored "-Wtypedef-redefinition"
8 10
 #include <SDL.h>
9 11
 #include "devices/ppu.h"
10 12
 #include "devices/apu.h"
11 13
 #include "devices/file.h"
12 14
 #pragma GCC diagnostic pop
15
+#pragma clang diagnostic pop
13 16
 
14 17
 /*
15 18
 Copyright (c) 2021 Devine Lu Linvega