Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Source / cmStandardLexer.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmStandardLexer_h
13 #define cmStandardLexer_h
14
15 /* Disable some warnings.  */
16 #if defined(_MSC_VER)
17 # pragma warning ( disable : 4127 )
18 # pragma warning ( disable : 4131 )
19 # pragma warning ( disable : 4244 )
20 # pragma warning ( disable : 4251 )
21 # pragma warning ( disable : 4267 )
22 # pragma warning ( disable : 4305 )
23 # pragma warning ( disable : 4309 )
24 # pragma warning ( disable : 4706 )
25 # pragma warning ( disable : 4786 )
26 #endif
27
28 #if defined(__BORLANDC__)
29 # pragma warn -8008 /* condition always returns true */
30 # pragma warn -8066 /* unreachable code */
31 #endif
32
33 /* Borland system header defines these macros without first undef-ing them. */
34 #if defined(__BORLANDC__) && __BORLANDC__ >= 0x580
35 # undef INT8_MIN
36 # undef INT16_MIN
37 # undef INT32_MIN
38 # undef INT8_MAX
39 # undef INT16_MAX
40 # undef INT32_MAX
41 # undef UINT8_MAX
42 # undef UINT16_MAX
43 # undef UINT32_MAX
44 # include <stdint.h>
45 #endif
46
47 /* Make sure SGI termios does not define ECHO differently.  */
48 #if defined(__sgi) && !defined(__GNUC__)
49 # include <sys/termios.h>
50 # undef ECHO
51 #endif
52
53 /* Define isatty on windows.  */
54 #if defined(_WIN32) && !defined(__CYGWIN__)
55 # include <io.h>
56 # if defined( _MSC_VER )
57 #  define isatty _isatty
58 # endif
59 # define YY_NO_UNISTD_H 1
60 #endif
61
62 /* Make sure malloc and free are available on QNX.  */
63 #ifdef __QNX__
64 # include <malloc.h>
65 #endif
66
67 /* Disable features we do not need. */
68 #define YY_NEVER_INTERACTIVE 1
69 #define YY_NO_INPUT 1
70 #define YY_NO_UNPUT 1
71 #define ECHO
72
73 #endif