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

Diff of /trunk/pcsx2/PrecompiledHeader.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 1  Line 1 
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  #ifndef PCSX2_PRECOMPILED_HEADER
17  #define PCSX2_PRECOMPILED_HEADER  #define PCSX2_PRECOMPILED_HEADER
18    
# Line 20  Line 35 
35  // macro provided for tagging translation strings, without actually running them through the  // macro provided for tagging translation strings, without actually running them through the
36  // translator (which the _() does automatically, and sometimes we don't want that).  This is  // translator (which the _() does automatically, and sometimes we don't want that).  This is
37  // a shorthand replacement for wxTRANSLATE.  // a shorthand replacement for wxTRANSLATE.
38  #define wxLt(a)         (a)  #ifndef wxLt
39    #       define wxLt(a)  wxT(a)
40    #endif
41    
42  #define NOMINMAX                // Disables other libs inclusion of their own min/max macros (we use std instead)  #define NOMINMAX                // Disables other libs inclusion of their own min/max macros (we use std instead)
43    
# Line 29  Line 46 
46    
47  #include <wx/string.h>  #include <wx/string.h>
48  #include <wx/tokenzr.h>  #include <wx/tokenzr.h>
 #include <wx/gdicmn.h>          // for wxPoint/wxRect stuff  
49  #include <wx/intl.h>  #include <wx/intl.h>
50  #include <wx/log.h>  #include <wx/log.h>
51  #include <wx/filename.h>  #include <wx/filename.h>
# Line 38  Line 54 
54  // Include the STL junk that's actually handy.  // Include the STL junk that's actually handy.
55    
56  #include <stdexcept>  #include <stdexcept>
 #include <algorithm>  
57  #include <vector>  #include <vector>
 #include <string>  
58  #include <list>  #include <list>
 #include <deque>  
 #include <sstream>  
59  #include <cstring>              // string.h under c++  #include <cstring>              // string.h under c++
60  #include <cstdio>               // stdio.h under c++  #include <cstdio>               // stdio.h under c++
61  #include <cstdlib>  #include <cstdlib>
 #include <iostream>  
 #include <sstream>  
 #include <fstream>  
62    
63  // ... and include some ANSI/POSIX C libs that are useful too, just for good measure.  // ... and include some ANSI/POSIX C libs that are useful too, just for good measure.
64  // (these compile lightning fast with or without PCH, but they never change so  // (these compile lightning fast with or without PCH, but they never change so
# Line 59  Line 68 
68  #include <sys/stat.h>  #include <sys/stat.h>
69  #include <pthread.h>  #include <pthread.h>
70    
   
 using std::string;              // we use it enough, so bring it into the global namespace.  
71  using std::min;  using std::min;
72  using std::max;  using std::max;
73    
# Line 71  typedef int BOOL; Line 78  typedef int BOOL;
78  #define TRUE  1  #define TRUE  1
79  #define FALSE 0  #define FALSE 0
80    
81    
82  //////////////////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////////////////
83  // Begin Pcsx2 Includes: Add items here that are local to Pcsx2 but stay relatively  // Begin Pcsx2 Includes: Add items here that are local to Pcsx2 but stay relatively
84  // unchanged for long periods of time, or happen to be used by almost everything, so they  // unchanged for long periods of time, or happen to be used by almost everything, so they
85  // need a full recompile anyway, when modified (etc)  // need a full recompile anyway, when modified (etc)
86    
87  #include <zlib/zlib.h>  #include "zlib.h"
88  #include "Pcsx2Defs.h"  #include "Pcsx2Defs.h"
89  #include "i18n.h"  #include "i18n.h"
90    
# Line 93  typedef int BOOL; Line 101  typedef int BOOL;
101    
102  #include "Config.h"  #include "Config.h"
103    
104    typedef void FnType_Void();
105    typedef FnType_Void* Fnptr_Void;
106    
107    static const s64 _1mb   = 0x100000;
108    static const s64 _8mb   = _1mb * 8;
109    static const s64 _16mb  = _1mb * 16;
110    static const s64 _256mb = _1mb * 256;
111    static const s64 _1gb   = _256mb * 4;
112    
113    //////////////////////////////////////////////////////////////////////////////////////////
114    // Compiler/OS specific macros and defines -- Begin Section
115    
116  // Linux isn't set up for svn version numbers yet.  // Linux isn't set up for svn version numbers yet.
117  #ifdef __LINUX__  #ifdef __LINUX__
118  #       define SVN_REV 0  #       define SVN_REV 0
119  #       define SVN_MODS 0  #       define SVN_MODS 0
120  #endif  #endif
121    
 //////////////////////////////////////////////////////////////////////////////////////////  
 // Compiler/OS specific macros and defines -- Begin Section  
   
122  #if defined(_MSC_VER)  #if defined(_MSC_VER)
123    
124  #       define strnicmp _strnicmp  #       define strnicmp _strnicmp
# Line 117  typedef int BOOL; Line 134  typedef int BOOL;
134  #               define __declspec(x)  #               define __declspec(x)
135  #       endif  #       endif
136    
 #       ifndef strnicmp  
 #               define strnicmp strncasecmp  
 #       endif  
   
 #       ifndef stricmp  
 #               define stricmp strcasecmp  
 #       endif  
   
137  #endif          // end GCC/Linux stuff  #endif          // end GCC/Linux stuff
138    
139  #endif  #endif

Legend:
Removed from v.31  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22