/[pcsx2_0.9.7]/trunk/pcsx2/PrecompiledHeader.h
ViewVC logotype

Contents of /trunk/pcsx2/PrecompiledHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 283 - (show annotations) (download)
Thu Dec 23 12:39:52 2010 UTC (9 years, 1 month ago) by william
File MIME type: text/plain
File size: 3474 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4132 local: v0.9.7.282-latest) in ./trunk
1 /* PCSX2 - PS2 Emulator for PCs
2 * Copyright (C) 2002-2010 PCSX2 Dev Team
3 *
4 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5 * of the GNU Lesser General Public License as published by the Free Software Found-
6 * ation, either version 3 of the License, or (at your option) any later version.
7 *
8 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with PCSX2.
13 * If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #ifndef PCSX2_PRECOMPILED_HEADER
17 #define PCSX2_PRECOMPILED_HEADER
18
19 //#pragma once // no dice, causes problems in GCC PCH (which doesn't really work very well anyway)
20
21 // Disable some pointless warnings...
22 #ifdef _MSC_VER
23 # pragma warning(disable:4250) //'class' inherits 'method' via dominance
24 # pragma warning(disable:4996) //ignore the stricmp deprecated warning
25 #endif
26
27 #include "Utilities/Dependencies.h"
28
29 #define NOMINMAX // Disables other libs inclusion of their own min/max macros (we use std instead)
30
31 //////////////////////////////////////////////////////////////////////////////////////////
32 // Welcome wxWidgets to the party!
33
34 #include <wx/string.h>
35 #include <wx/tokenzr.h>
36 #include <wx/intl.h>
37 #include <wx/log.h>
38 #include <wx/filename.h>
39
40 //////////////////////////////////////////////////////////////////////////////////////////
41 // Include the STL junk that's actually handy.
42
43 #include <stdexcept>
44 #include <vector>
45 #include <list>
46 #include <cstring> // string.h under c++
47 #include <cstdio> // stdio.h under c++
48 #include <cstdlib>
49
50 // ... and include some ANSI/POSIX C libs that are useful too, just for good measure.
51 // (these compile lightning fast with or without PCH, but they never change so
52 // might as well add them here)
53
54 #include <stddef.h>
55 #include <sys/stat.h>
56 #include <pthread.h>
57
58 using std::min;
59 using std::max;
60
61 typedef int BOOL;
62
63 #undef TRUE
64 #undef FALSE
65 #define TRUE 1
66 #define FALSE 0
67
68
69 //////////////////////////////////////////////////////////////////////////////////////////
70 // Begin Pcsx2 Includes: Add items here that are local to Pcsx2 but stay relatively
71 // unchanged for long periods of time, or happen to be used by almost everything, so they
72 // need a full recompile anyway, when modified (etc)
73
74 #include "Pcsx2Defs.h"
75 #include "i18n.h"
76
77 #include "Utilities/FixedPointTypes.h"
78 #include "Utilities/wxBaseTools.h"
79 #include "Utilities/ScopedPtr.h"
80 #include "Utilities/Path.h"
81 #include "Utilities/Console.h"
82 #include "Utilities/MemcpyFast.h"
83 #include "Utilities/General.h"
84 #include "x86emitter/tools.h"
85
86 #include "Config.h"
87
88 typedef void FnType_Void();
89 typedef FnType_Void* Fnptr_Void;
90
91 // --------------------------------------------------------------------------------------
92 // Compiler/OS specific macros and defines
93 // --------------------------------------------------------------------------------------
94
95 // Linux isn't set up for svn version numbers yet.
96 #ifdef __LINUX__
97 # define SVN_REV 0
98 # define SVN_MODS 0
99 #endif
100
101 #if defined(_MSC_VER)
102
103 # define strnicmp _strnicmp
104 # define stricmp _stricmp
105
106 #else // must be GCC...
107
108 # include <sys/types.h>
109 # include <sys/timeb.h>
110
111 // Definitions added Feb 16, 2006 by efp
112 # ifndef __declspec
113 # define __declspec(x)
114 # endif
115
116 #endif // end GCC/Linux stuff
117
118 #endif

  ViewVC Help
Powered by ViewVC 1.1.22