mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
very minor compile speed improvements
This commit is contained in:
@@ -21,8 +21,6 @@
|
|||||||
#ifndef LOVE_STRING_MAP_H
|
#ifndef LOVE_STRING_MAP_H
|
||||||
#define LOVE_STRING_MAP_H
|
#define LOVE_STRING_MAP_H
|
||||||
|
|
||||||
#include "Exception.h"
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
// STD
|
// STD
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif // LOVE_WINDOWS
|
#endif // LOVE_WINDOWS
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
// LOVE
|
// LOVE
|
||||||
#include "CompressedData.h"
|
#include "CompressedData.h"
|
||||||
|
#include "common/Exception.h"
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include "Compressor.h"
|
#include "Compressor.h"
|
||||||
#include "common/config.h"
|
#include "common/config.h"
|
||||||
#include "common/int.h"
|
#include "common/int.h"
|
||||||
|
#include "common/Exception.h"
|
||||||
|
|
||||||
#include "libraries/lz4/lz4.h"
|
#include "libraries/lz4/lz4.h"
|
||||||
#include "libraries/lz4/lz4hc.h"
|
#include "libraries/lz4/lz4hc.h"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include "HashFunction.h"
|
#include "HashFunction.h"
|
||||||
|
#include "common/Exception.h"
|
||||||
|
|
||||||
// FIXME: Probably trivial by having tole and tobe functions, which can be ifdeffed to being identity functions
|
// FIXME: Probably trivial by having tole and tobe functions, which can be ifdeffed to being identity functions
|
||||||
#ifdef LOVE_BIG_ENDIAN
|
#ifdef LOVE_BIG_ENDIAN
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include "common/apple.h"
|
#include "common/apple.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#elif defined(LOVE_WINDOWS)
|
#elif defined(LOVE_WINDOWS)
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <fileapi.h>
|
#include <fileapi.h>
|
||||||
#include "common/utf8.h"
|
#include "common/utf8.h"
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
// Using this instead of boost::filesystem which totally
|
// Using this instead of boost::filesystem which totally
|
||||||
// cramped our style.
|
// cramped our style.
|
||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <direct.h>
|
# include <direct.h>
|
||||||
# include <initguid.h>
|
# include <initguid.h>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include "CompressedImageData.h"
|
#include "CompressedImageData.h"
|
||||||
|
#include "common/Exception.h"
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#include "common/pixelformat.h"
|
#include "common/pixelformat.h"
|
||||||
#include "CompressedSlice.h"
|
#include "CompressedSlice.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
namespace image
|
namespace image
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif // LOVE_WINDOWS
|
#endif // LOVE_WINDOWS
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
// Module
|
// Module
|
||||||
#include "Body.h"
|
#include "Body.h"
|
||||||
#include "World.h"
|
#include "World.h"
|
||||||
|
#include "common/Exception.h"
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#if defined(LOVE_WINDOWS)
|
#if defined(LOVE_WINDOWS)
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#elif defined(LOVE_MACOS) || defined(LOVE_IOS)
|
#elif defined(LOVE_MACOS) || defined(LOVE_IOS)
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LOVE_WINDOWS)
|
#if defined(LOVE_WINDOWS)
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dwmapi.h>
|
#include <dwmapi.h>
|
||||||
#include <VersionHelpers.h>
|
#include <VersionHelpers.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user