From 1d0401ef833c5d18466351682cc7fe38d0fdc0bc Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 20 Sep 2021 13:47:53 -0700 Subject: [PATCH] Move Emscripten includes to top of `main.cpp` All system header includes should come before project-specific includes (includes specific to this game), while coming after the include specific to the given file (if any; main.cpp doesn't have any). --- desktop_version/src/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 39d5b466..fc4ef3f2 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -1,4 +1,8 @@ #include +#ifdef __EMSCRIPTEN__ +#include +#include +#endif #include "CustomLevels.h" #include "DeferCallbacks.h" @@ -24,11 +28,6 @@ #include "UtilityClass.h" #include "Vlogging.h" -#ifdef __EMSCRIPTEN__ -#include -#include -#endif - scriptclass script; #ifndef NO_CUSTOM_LEVELS