OSDN Git Service

use boost_1_56_0 and build by VS2013
[yamy/yamy.git] / compiler_specific.h
1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
2 // compiler_specific.h\r
3 \r
4 \r
5 #ifndef _COMPILER_SPECIFIC_H\r
6 #  define _COMPILER_SPECIFIC_H\r
7 \r
8 \r
9 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
10 // Microsoft Visual C++ 6.0\r
11 \r
12 #  if defined(_MSC_VER)\r
13 \r
14 // C4061 enum 'identifier' is not handled by case label\r
15 // C4100 argument 'identifier' is not used\r
16 // C4132 const 'object' must be initialized\r
17 // C4552 'operator' : operator has no effect\r
18 // C4701 local variable 'name' may be uninitialized\r
19 // C4706 condition is a result of a assign\r
20 // C4786 identifier is truncated into 255 chars (in debug information)\r
21 #    pragma warning(disable : 4061 4100 4132 4552 4701 4706 4786)\r
22 \r
23 #    define setmode _setmode\r
24 //#    define for if (false) ; else for\r
25 \r
26 #    define stati64_t _stati64\r
27 \r
28 \r
29 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
30 // Borland C++ 5.5.1\r
31 \r
32 #  elif defined(__BORLANDC__)\r
33 \r
34 // W8004 'identifier' is assigned a value that is never used in function\r
35 // W8022 'identifier' hides virtual function 'function'\r
36 // W8027 Functions containing ... are not expanded inline\r
37 // W8030 Temporary used for parameter 'identifier'\r
38 //       in call to 'function' in function\r
39 // W8060 Possibly incorrect assignment in function\r
40 // W8070 Function should return a value in function\r
41 // W8084 Suggest parentheses to clarify precedence in function\r
42 #    pragma warn -8004\r
43 #    pragma warn -8022\r
44 #    pragma warn -8027\r
45 #    pragma warn -8030\r
46 #    pragma warn -8060\r
47 #    pragma warn -8070\r
48 #    pragma warn -8084\r
49 \r
50 #    ifdef _UNICODE\r
51 extern wchar_t **_wargv;\r
52 #    endif\r
53 \r
54 #    ifdef _MBCS\r
55 #      define _istcntrl iscntrl\r
56 #    endif\r
57 \r
58 #    include <windows.h>\r
59 #    include <tchar.h>\r
60 \r
61 extern "C"\r
62 {\r
63         int WINAPI _tWinMain(HINSTANCE i_hInstance, HINSTANCE i_hPrevInstance,\r
64                                                  LPTSTR i_lpszCmdLine, int i_nCmdShow);\r
65 }\r
66 \r
67 #    define stati64_t stati64\r
68 \r
69 \r
70 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
71 // Cygwin 1.1 (gcc 2.95.2)\r
72 \r
73 #  elif defined(__CYGWIN__)\r
74 #    error "I don't know the details of this compiler... Plz hack."\r
75 \r
76 \r
77 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
78 // Watcom C++\r
79 \r
80 #  elif defined(__WATCOMC__)\r
81 #    error "I don't know the details of this compiler... Plz hack."\r
82 \r
83 \r
84 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
85 // unknown\r
86 \r
87 #  else\r
88 #    error "I don't know the details of this compiler... Plz hack."\r
89 \r
90 #  endif\r
91 \r
92 \r
93 #endif // _COMPILER_SPECIFIC_H\r