mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
very minor compile speed improvements
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
#ifndef LOVE_STRING_MAP_H
|
||||
#define LOVE_STRING_MAP_H
|
||||
|
||||
#include "Exception.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
// STD
|
||||
#include <bitset>
|
||||
#include <vector>
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifdef LOVE_WINDOWS
|
||||
|
||||
#include <string>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
namespace love
|
||||
|
||||
@@ -34,6 +34,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
#ifdef LOVE_WINDOWS
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#endif // LOVE_WINDOWS
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
// LOVE
|
||||
#include "CompressedData.h"
|
||||
#include "common/Exception.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
**/
|
||||
|
||||
#include "CompressedImageData.h"
|
||||
#include "common/Exception.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "common/pixelformat.h"
|
||||
#include "CompressedSlice.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace image
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <sstream>
|
||||
|
||||
#ifdef LOVE_WINDOWS
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#endif // LOVE_WINDOWS
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
// Module
|
||||
#include "Body.h"
|
||||
#include "World.h"
|
||||
#include "common/Exception.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(LOVE_WINDOWS)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <dwmapi.h>
|
||||
#include <VersionHelpers.h>
|
||||
|
||||
Reference in New Issue
Block a user