OSDN Git Service

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