removed tchar.h usage
[fegdk.git] / core / code / common / pch.h
blob38ba8eae41a28203c3b3c9148c3a77edce1f8288
1 /*
2 fegdk: FE Game Development Kit
3 Copyright (C) 2001-2008 Alexey "waker" Yakovenko
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 Alexey Yakovenko
20 waker@users.sourceforge.net
23 #ifndef __PCH_H
24 #define __PCH_H
26 #ifdef _WIN32
27 #define _WIN32_WINNT 0x0400
28 #endif
31 #if defined _DEBUG && defined _WIN32
32 #define CRTDBG_MAP_ALLOC
33 #include <stdlib.h>
34 #include <crtdbg.h>
35 #else
36 #include <stdlib.h>
37 #endif
39 #if 0
40 #ifndef _WIN32
41 #include "mstchar.h"
42 #else
43 #include <TCHAR.h>
44 #endif
45 #endif
47 //-----------------------------------
48 // misc msvc warning disables
49 //-----------------------------------
51 #ifdef _MSC_VER
52 #pragma warning (disable:4244)
53 //#pragma warning (disable:4305)
54 //#pragma warning (disable:4142)
55 //#pragma warning (disable:4018)
56 #pragma warning (disable:4786)
57 #endif
60 //-----------------------------------
61 // win32 includes
62 //-----------------------------------
64 #ifdef _WIN32
65 #include <windows.h>
66 /*#include <assert.h>
67 #include <mmsystem.h>
68 #include <objbase.h>*/
69 #endif
71 #include <limits.h>
72 #include <math.h>
73 #include <stdio.h>
74 #include <time.h>
75 #include <ctype.h>
77 #if 0
78 #define DIRECT3D_VERSION 0x0800
79 #include <d3d8.h>
80 #include <d3dx8.h>
81 #endif
83 #endif // __PCH_H