1 /**
2 * Copyright (c) 2006-2011 LOVE Development Team
3 *
4 * This software is provided 'as-is', without any express or implied
5 * warranty.  In no event will the authors be held liable for any damages
6 * arising from the use of this software.
7 *
8 * Permission is granted to anyone to use this software for any purpose,
9 * including commercial applications, and to alter it and redistribute it
10 * freely, subject to the following restrictions:
11 *
12 * 1. The origin of this software must not be misrepresented; you must not
13 *    claim that you wrote the original software. If you use this software
14 *    in a product, an acknowledgment in the product documentation would be
15 *    appreciated but is not required.
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 *    misrepresented as being the original software.
18 * 3. This notice may not be removed or altered from any source distribution.
19 **/
20 
21 #ifndef LOVE_CONFIG_H
22 #define LOVE_CONFIG_H
23 
24 // Platform stuff.
25 #if defined(WIN32) || defined(_WIN32)
26 #	define LOVE_WINDOWS 1
27 #endif
28 #if defined(linux) || defined(__linux) || defined(__linux__)
29 #	define LOVE_LINUX 1
30 #endif
31 #if defined(__APPLE__)
32 #	define LOVE_MACOSX 1
33 #endif
34 #if defined(macintosh)
35 #	define LOVE_MACOS 1
36 #endif
37 
38 // Endianness.
39 #if defined(__i386__) || defined(__i386)
40 #	define LOVE_LITTLE_ENDIAN 1
41 #endif
42 #if defined(__ppc__) || defined(__ppc)
43 #	define LOVE_BIG_ENDIAN 1
44 #endif
45 
46 // Warnings.
47 #ifndef _CRT_SECURE_NO_WARNINGS
48 #	define _CRT_SECURE_NO_WARNINGS
49 #endif
50 
51 #ifndef LOVE_BUILD
52 #	define LOVE_BUILD
53 #	define LOVE_BUILD_STANDALONE
54 #	define LOVE_BUILD_EXE
55 //#	define LOVE_BUILD_DLL
56 #endif
57 
58 // DLL-stuff.
59 #ifdef LOVE_WINDOWS
60 #	define LOVE_EXPORT __declspec(dllexport)
61 #else
62 #	define LOVE_EXPORT
63 #endif
64 
65 #if defined(LOVE_WINDOWS)
66 #	define LOVE_LEGENDARY_UTF8_ARGV_HACK
67 #	define LOVE_LEGENDARY_CONSOLE_IO_HACK
68 #endif
69 
70 #endif // LOVE_CONFIG_H
71