Merge pull request #133 from GabrielRavier/portableMinimizeHeaders

portable: Cleaned up includes to only (and always) include what we use
This commit is contained in:
Clownacy 2020-07-02 14:56:34 +01:00 committed by GitHub
commit 99fd64462b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 11 additions and 35 deletions

View file

@ -1,7 +1,6 @@
#include "../Audio.h"
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <string>

View file

@ -2,9 +2,7 @@
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../Attributes.h"

View file

@ -1,6 +1,7 @@
#include "../Audio.h"
#include <stddef.h>
#include <string.h>
#define MINIAUDIO_IMPLEMENTATION
#define MA_NO_DECODING

View file

@ -1,6 +1,7 @@
#include "../Controller.h"
#include <stddef.h>
#include <stdlib.h>
#include "SDL.h"

View file

@ -17,7 +17,6 @@
#include "../../Main.h"
#include "../../Organya.h"
#include "../../Profile.h"
#include "../../Resource.h"
#define DO_KEY(GLFW_KEY, BACKEND_KEY) \
case GLFW_KEY: \

View file

@ -2,6 +2,8 @@
#include <string>
#include "../../Attributes.h"
bool Backend_Init(void)
{
return true;

View file

@ -1,6 +1,8 @@
#include "../Misc.h"
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
@ -9,10 +11,10 @@
#include "../Rendering.h"
#include "../Shared/SDL2.h"
#include "../../Attributes.h"
#include "../../Main.h"
#include "../../Organya.h"
#include "../../Profile.h"
#include "../../Resource.h"
#define DO_KEY(SDL_KEY, BACKEND_KEY) \
case SDL_KEY: \

View file

@ -1,6 +1,7 @@
#include "../Misc.h"
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <string>

View file

@ -15,11 +15,8 @@
#define SPRITEBATCH_IMPLEMENTATION
#include "../../../external/cute_spritebatch.h"
#include "../../WindowsWrapper.h"
#include "../Misc.h"
#include "Window/OpenGL.h"
#include "../../Resource.h"
#define TOTAL_VBOS 8

View file

@ -14,10 +14,6 @@
#include "../Misc.h"
#include "../Shared/SDL2.h"
#include "../../Draw.h"
#include "../../Ending.h"
#include "../../MapName.h"
#include "../../TextScr.h"
typedef struct RenderBackend_Surface
{

View file

@ -1,11 +1,8 @@
#include "../OpenGL.h"
#include <stddef.h>
#include <stdlib.h>
#ifdef USE_OPENGLES2
#include <GLES2/gl2.h>
#else
#ifndef USE_OPENGLES2
#include <glad/glad.h>
#endif
#include <GLFW/glfw3.h>

View file

@ -3,9 +3,7 @@
#include <stddef.h>
#include <string>
#ifdef USE_OPENGLES2
#include <GLES2/gl2.h>
#else
#ifndef USE_OPENGLES2
#include <glad/glad.h>
#endif
#include "SDL.h"

View file

@ -1,7 +1,6 @@
#include "../Software.h"
#include <stddef.h>
#include <stdlib.h>
#include <string>
#include "SDL.h"

View file

@ -1,7 +1,6 @@
#include "Draw.h"
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <string>

View file

@ -1,6 +1,5 @@
#include "Font.h"
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
@ -9,9 +8,6 @@
#include FT_FREETYPE_H
#include FT_BITMAP_H
#include "WindowsWrapper.h"
#include "Draw.h"
#include "File.h"
#include "Backends/Rendering.h"

View file

@ -1,7 +1,6 @@
#include "Game.h"
#include <stddef.h>
#include <stdio.h>
#include <string>
#include "WindowsWrapper.h"

View file

@ -1,7 +1,5 @@
#include "GenericLoad.h"
#include <stdio.h>
#include "WindowsWrapper.h"
#include "CommonDefines.h"

View file

@ -1,7 +1,6 @@
#include "Main.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
@ -9,19 +8,16 @@
#include "WindowsWrapper.h"
#include "Backends/Misc.h"
#include "Backends/Rendering.h"
#include "Bitmap.h"
#include "CommonDefines.h"
#include "Config.h"
#include "Draw.h"
#include "File.h"
#include "Game.h"
#include "Generic.h"
#include "Input.h"
#include "KeyControl.h"
#include "MyChar.h"
#include "Organya.h"
#include "Profile.h"
#include "Resource.h"
#include "Sound.h"
#include "Triangle.h"

View file

@ -20,7 +20,7 @@ equivalents.
#include "WindowsWrapper.h"
#include "Backends/Audio.h"
#include "Main.h"
//#include "Main.h" // Was for gModulePath, but this is unneeded in the portable branch since LoadSoundObject is commented-out
#include "Organya.h"
#include "PixTone.h"

View file

@ -1,7 +1,5 @@
#include "Stage.h"
#include <stdio.h>
#include <string.h>
#include <string>
#include "WindowsWrapper.h"