SUMO - Simulation of Urban MObility
windows_config.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
20 // The general windows configuration file
21 /****************************************************************************/
22 #ifndef config_h
23 #define config_h
24 
25 #ifndef _MSC_VER
26 #error This file is for MSVC compilation only. GCC should use configure generated config.h.
27 #endif
28 
29 /* Disable "decorated name length exceeded, name was truncated" warnings. */
30 #pragma warning(disable: 4503)
31 /* Disable "identifier truncated in debug info" warnings. */
32 #pragma warning(disable: 4786)
33 /* Disable "C++ Exception Specification ignored" warnings */
34 #pragma warning(disable: 4290)
35 /* Disable DLL-Interface warnings */
36 #pragma warning(disable: 4251)
37 
38 /* Disable "unsafe" warnings for crt functions in VC++ 2005. */
39 #if _MSC_VER >= 1400
40 #define _CRT_SECURE_NO_WARNINGS
41 #endif
42 
43 #ifndef WIN32
44 #define WIN32
45 #endif
46 
47 /* Define for dynamic Fox linkage */
48 #define FOXDLL 1
49 
50 /* Temporary workaround to enable cmake compilation with MSVC */
51 #ifndef HAVE_ENABLED
52 #include <config.h>
53 #else
54 
55 /* defines the epsilon to use on position comparison */
56 #define POSITION_EPS 0.1
57 
58 /* defines the epsilon to use on general floating point comparison */
59 #define NUMERICAL_EPS 0.001
60 
61 /* Define if auto-generated version.h should be used. */
62 #define HAVE_VERSION_H 1
63 
64 /* Version number of package */
65 #ifndef HAVE_VERSION_H
66 #define VERSION_STRING "0.32.0"
67 #endif
68 
69 /* Definition for the character function of Xerces */
70 #define XERCES3_SIZE_t XMLSize_t //Xerces >= 3.0
71 //#define XERCES3_SIZE_t unsigned int //Xerces < 3.0
72 
73 #endif // HAVE_ENABLED
74 
75 #endif