Optimize includes
Only include SDL_stdinc.h for SDL_bool, not the whole SDL.h.
This commit is contained in:
parent
d5b349f670
commit
d972a88c1a
5 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
#define COMMAND_H
|
#define COMMAND_H
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL_stdinc.h>
|
||||||
#include <SDL2/SDL_platform.h>
|
#include <SDL2/SDL_platform.h>
|
||||||
|
|
||||||
// <https://stackoverflow.com/a/44383330/1987178>
|
// <https://stackoverflow.com/a/44383330/1987178>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef DECODER_H
|
#ifndef DECODER_H
|
||||||
#define DECODER_H
|
#define DECODER_H
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL_stdinc.h>
|
||||||
#include <SDL2/SDL_net.h>
|
#include <SDL2/SDL_net.h>
|
||||||
|
|
||||||
struct frames;
|
struct frames;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#ifndef FRAMES_H
|
#ifndef FRAMES_H
|
||||||
#define FRAMES_H
|
#define FRAMES_H
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL_mutex.h>
|
||||||
|
#include <SDL2/SDL_stdinc.h>
|
||||||
|
|
||||||
// forward declarations
|
// forward declarations
|
||||||
typedef struct AVFrame AVFrame;
|
typedef struct AVFrame AVFrame;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL_net.h>
|
#include <SDL2/SDL_net.h>
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef SCREEN_H
|
#ifndef SCREEN_H
|
||||||
#define SCREEN_H
|
#define SCREEN_H
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL_stdinc.h>
|
||||||
|
|
||||||
SDL_bool show_screen(const char *serial, Uint16 local_port);
|
SDL_bool show_screen(const char *serial, Uint16 local_port);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue