Browse Source

very minor compile speed improvements

Sasha Szpakowski 2 years ago
parent
commit
95d44c2c2d

+ 0 - 2
src/common/StringMap.h

@@ -21,8 +21,6 @@
 #ifndef LOVE_STRING_MAP_H
 #define LOVE_STRING_MAP_H
 
-#include "Exception.h"
-
 #include <string>
 #include <vector>
 

+ 0 - 1
src/common/types.h

@@ -25,7 +25,6 @@
 
 // STD
 #include <bitset>
-#include <vector>
 
 namespace love
 {

+ 2 - 0
src/common/utf8.h

@@ -23,6 +23,8 @@
 #ifdef LOVE_WINDOWS
 
 #include <string>
+
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
 namespace love

+ 1 - 0
src/love.cpp

@@ -34,6 +34,7 @@ extern "C" {
 }
 
 #ifdef LOVE_WINDOWS
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #endif // LOVE_WINDOWS
 

+ 1 - 0
src/modules/data/CompressedData.cpp

@@ -20,6 +20,7 @@
 
 // LOVE
 #include "CompressedData.h"
+#include "common/Exception.h"
 
 namespace love
 {

+ 1 - 0
src/modules/data/Compressor.cpp

@@ -22,6 +22,7 @@
 #include "Compressor.h"
 #include "common/config.h"
 #include "common/int.h"
+#include "common/Exception.h"
 
 #include "libraries/lz4/lz4.h"
 #include "libraries/lz4/lz4hc.h"

+ 1 - 0
src/modules/data/HashFunction.cpp

@@ -19,6 +19,7 @@
  **/
 
 #include "HashFunction.h"
+#include "common/Exception.h"
 
 // FIXME: Probably trivial by having tole and tobe functions, which can be ifdeffed to being identity functions
 #ifdef LOVE_BIG_ENDIAN

+ 1 - 0
src/modules/filesystem/Filesystem.cpp

@@ -30,6 +30,7 @@
 #include "common/apple.h"
 #include <unistd.h>
 #elif defined(LOVE_WINDOWS)
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <fileapi.h>
 #include "common/utf8.h"

+ 1 - 0
src/modules/filesystem/physfs/Filesystem.cpp

@@ -35,6 +35,7 @@
 // Using this instead of boost::filesystem which totally
 // cramped our style.
 #ifdef LOVE_WINDOWS
+#	define WIN32_LEAN_AND_MEAN
 #	include <windows.h>
 #	include <direct.h>
 #	include <initguid.h>

+ 1 - 0
src/modules/image/CompressedImageData.cpp

@@ -19,6 +19,7 @@
  **/
 
 #include "CompressedImageData.h"
+#include "common/Exception.h"
 
 namespace love
 {

+ 2 - 0
src/modules/image/FormatHandler.h

@@ -26,6 +26,8 @@
 #include "common/pixelformat.h"
 #include "CompressedSlice.h"
 
+#include <vector>
+
 namespace love
 {
 namespace image

+ 1 - 0
src/modules/love/love.cpp

@@ -32,6 +32,7 @@
 #include <sstream>
 
 #ifdef LOVE_WINDOWS
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #endif // LOVE_WINDOWS
 

+ 1 - 0
src/modules/physics/box2d/GearJoint.cpp

@@ -23,6 +23,7 @@
 // Module
 #include "Body.h"
 #include "World.h"
+#include "common/Exception.h"
 
 namespace love
 {

+ 1 - 0
src/modules/timer/Timer.cpp

@@ -26,6 +26,7 @@
 
 #include <iostream>
 #if defined(LOVE_WINDOWS)
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #elif defined(LOVE_MACOS) || defined(LOVE_IOS)
 #include <mach/mach_time.h>

+ 1 - 0
src/modules/window/sdl/Window.cpp

@@ -51,6 +51,7 @@
 #endif
 
 #if defined(LOVE_WINDOWS)
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <dwmapi.h>
 #include <VersionHelpers.h>