cmStandardLexer.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmStandardLexer_h
  11. #define cmStandardLexer_h
  12. /* Disable some warnings. */
  13. #if defined(_MSC_VER)
  14. # pragma warning ( disable : 4127 )
  15. # pragma warning ( disable : 4131 )
  16. # pragma warning ( disable : 4244 )
  17. # pragma warning ( disable : 4251 )
  18. # pragma warning ( disable : 4267 )
  19. # pragma warning ( disable : 4305 )
  20. # pragma warning ( disable : 4309 )
  21. # pragma warning ( disable : 4706 )
  22. # pragma warning ( disable : 4786 )
  23. #endif
  24. /* Define isatty on windows. */
  25. #if defined(_WIN32) && !defined(__CYGWIN__)
  26. # include <io.h>
  27. # if defined( _MSC_VER )
  28. # define isatty _isatty
  29. # endif
  30. # define YY_NO_UNISTD_H 1
  31. #endif
  32. /* Make sure malloc and free are available on QNX. */
  33. #ifdef __QNX__
  34. # include <malloc.h>
  35. #endif
  36. /* Disable features we do not need. */
  37. #define YY_NEVER_INTERACTIVE 1
  38. #define YY_NO_INPUT 1
  39. #define YY_NO_UNPUT 1
  40. #define ECHO
  41. #endif