Skip to content

Display and control your Android device

Optimize includes

Romain Vimontd972a88c1a0e
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 <inttypes.h>
-#include <SDL2/SDL.h>
+#include <SDL2/SDL_stdinc.h>
#include <SDL2/SDL_platform.h>
// <https://stackoverflow.com/a/44383330/1987178>
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 <SDL2/SDL.h>
+#include <SDL2/SDL_stdinc.h>
#include <SDL2/SDL_net.h>
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 <SDL2/SDL.h>
+#include <SDL2/SDL_mutex.h>
+#include <SDL2/SDL_stdinc.h>
// 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 <unistd.h>
#include <libavformat/avformat.h>
#include <sys/time.h>
+#include <SDL2/SDL.h>
#include <SDL2/SDL_net.h>
#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 <SDL2/SDL.h>
+#include <SDL2/SDL_stdinc.h>
SDL_bool show_screen(const char *serial, Uint16 local_port);