From d972a88c1a0e3fe4ee3b116c5228542df60a1b4e Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 15 Dec 2017 17:34:16 +0100 Subject: [PATCH] Optimize includes Only include SDL_stdinc.h for SDL_bool, not the whole SDL.h. --- app/src/command.h | 2 +- app/src/decoder.h | 2 +- app/src/frames.h | 3 ++- app/src/screen.c | 1 + app/src/screen.h | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/command.h b/app/src/command.h index 8a19cd26..54fe7aca 100644 --- a/app/src/command.h +++ b/app/src/command.h @@ -2,7 +2,7 @@ #define COMMAND_H #include -#include +#include #include // diff --git a/app/src/decoder.h b/app/src/decoder.h index 88c0a8cb..a76dd1c7 100644 --- a/app/src/decoder.h +++ b/app/src/decoder.h @@ -1,7 +1,7 @@ #ifndef DECODER_H #define DECODER_H -#include +#include #include struct frames; diff --git a/app/src/frames.h b/app/src/frames.h index 81c6eabf..66ee2a58 100644 --- a/app/src/frames.h +++ b/app/src/frames.h @@ -1,7 +1,8 @@ #ifndef FRAMES_H #define FRAMES_H -#include +#include +#include // forward declarations typedef struct AVFrame AVFrame; diff --git a/app/src/screen.c b/app/src/screen.c index b2b49435..7a48c2ad 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "command.h" diff --git a/app/src/screen.h b/app/src/screen.h index ba679b55..a3d4d2af 100644 --- a/app/src/screen.h +++ b/app/src/screen.h @@ -1,7 +1,7 @@ #ifndef SCREEN_H #define SCREEN_H -#include +#include SDL_bool show_screen(const char *serial, Uint16 local_port);