1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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
15 /* Disable some warnings. */
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 )
28 #if defined(__BORLANDC__)
29 # pragma warn -8008 /* condition always returns true */
30 # pragma warn -8066 /* unreachable code */
33 /* Borland system header defines these macros without first undef-ing them. */
34 #if defined(__BORLANDC__) && __BORLANDC__ >= 0x580
47 /* Make sure SGI termios does not define ECHO differently. */
48 #if defined(__sgi) && !defined(__GNUC__)
49 # include <sys/termios.h>
53 /* Define isatty on windows. */
54 #if defined(_WIN32) && !defined(__CYGWIN__)
56 # if defined( _MSC_VER )
57 # define isatty _isatty
59 # define YY_NO_UNISTD_H 1
62 /* Make sure malloc and free are available on QNX. */
67 /* Disable features we do not need. */
68 #define YY_NEVER_INTERACTIVE 1