Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
ScannerConfig.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#ifndef ICE_UTIL_SCANNER_CONFIG_H
6#define ICE_UTIL_SCANNER_CONFIG_H
7
8#include <IceUtil/Config.h> // Required by generated Scanners.
9
10//
11// COMPILERFIX: VC compilers does not provide stdint.h header until v100
12// the header must be included before that macros for integral types
13// in flex generated Scanners are defined.
14//
15// in C99 conformant compilers we don't need to include it because the
16// header is included by inttypes.h, that is included by the gernated
17// Scanners.
18//
19#if defined(_MSC_VER) && (_MSC_VER >= 1600)
20# include <stdint.h>
21#endif
22
23//
24// Clang++ >= 5.1 and VC++ using C++17 standard deprecate 'register' storage
25// class specifier used by lex generated Scanners.
26//
27#if defined(__clang__)
28# pragma clang diagnostic ignored "-Wdeprecated-register"
29#elif defined(_MSC_VER) && (_MSC_VER >= 1900)
30# pragma warning(disable:5033)
31#endif
32
33#if defined(__clang__)
34# pragma clang diagnostic ignored "-Wconversion"
35# pragma clang diagnostic ignored "-Wsign-conversion"
36# pragma clang diagnostic ignored "-Wdocumentation"
37# pragma clang diagnostic ignored "-Wunused-but-set-variable"
38#endif
39
40#endif