TexGen
ShinyConfig.h
Go to the documentation of this file.
1/*
2The zlib/libpng License
3
4Copyright (c) 2007 Aidin Abedi (www.*)
5
6This software is provided 'as-is', without any express or implied warranty. In no event will
7the authors be held liable for any damages arising from the use of this software.
8
9Permission is granted to anyone to use this software for any purpose, including commercial
10applications, and to alter it and redistribute it freely, subject to the following
11restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not claim that
14 you wrote the original software. If you use this software in a product,
15 an acknowledgment in the product documentation would be appreciated but is
16 not required.
17
18 2. Altered source versions must be plainly marked as such, and must not be
19 misrepresented as being the original software.
20
21 3. This notice may not be removed or altered from any source distribution.
22*/
23
24#ifndef SHINY_CONFIG_H
25#define SHINY_CONFIG_H
26
27
28//-----------------------------------------------------------------------------
29
30#ifndef SHINY_PROFILER
31#define SHINY_PROFILER TRUE
32#endif
33
34#ifndef SHINY_PROFILER_LOOKUPRATE
35#define SHINY_PROFILER_LOOKUPRATE TRUE
36#endif
37
38
39//-----------------------------------------------------------------------------
40
41#ifndef FALSE
42#define FALSE 0x0
43#endif
44
45#ifndef TRUE
46#define TRUE 0x1
47#endif
48
49#ifndef NULL
50#define NULL 0
51#endif
52
53
54//-----------------------------------------------------------------------------
55
56#define SHINY_PLATFORM_WIN32 0x1
57#define SHINY_PLATFORM_POSIX 0x2
58
59#if defined (_WIN32)
60# define SHINY_PLATFORM SHINY_PLATFORM_WIN32
61
62#else
63// ASSUME: POSIX-compliant OS
64# define SHINY_PLATFORM SHINY_PLATFORM_POSIX
65#endif
66
67
68//-----------------------------------------------------------------------------
69
70#define SHINY_COMPILER_MSVC 0x1
71#define SHINY_COMPILER_GNUC 0x2
72#define SHINY_COMPILER_OTHER 0x3
73
74#if defined (_MSC_VER)
75# define SHINY_COMPILER SHINY_COMPILER_MSVC
76
77#elif defined (__GNUG__)
78# define SHINY_COMPILER SHINY_COMPILER_GNUC
79
80#else
81# define SHINY_COMPILER SHINY_COMPILER_OTHER
82#endif
83
84#endif // ifndef SHINY_*_H