History

avdevice/sdl2: Suppress macro redefinition warning

SDL2's headers #define HAVE_PTHREAD_SETNAME_NP (to one here); we also have a config define which leads the compiler to warn about this when the values are distinct (as they are here). Suppress this warning by including config.h before SDL.h. The latter will then redefine our define which doesn't matter and which does not lead to warnings because compilers don't warn about system headers by default (depending upon -Wsystem-headers).

Andreas Rheinhardt committed 1 year ago

Commit e5d62e21 parent 94fd2221 file · +2 −0Browse files

Unified · Split

libavdevice/sdl2.c+2−0
@@ -23,6 +23,8 @@ · 22 unmodified lines
23 * libSDL2 output device23 * libSDL2 output device
24 */24 */
25 25
26#include "config.h"
27
26#include <SDL.h>28#include <SDL.h>
27#include <SDL_thread.h>29#include <SDL_thread.h>
28 30

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t