ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/config.h.cmake
Revision: 2077
Committed: Mon Mar 9 17:10:26 2015 UTC (10 years, 1 month ago) by gezelter
File size: 2017 byte(s)
Log Message:
Changes to make MSVC happy

File Contents

# Content
1 /* config.h. Generated from config.h.cmake by CMake for @PROJECT_NAME@ */
2 #ifndef __CONFIG_H
3 #define __CONFIG_H
4
5 #define OPENMD_VERSION_MAJOR "${VERSION_MAJOR}"
6 #define OPENMD_VERSION_MINOR "${VERSION_MINOR}"
7 #define OPENMD_VERSION_TINY "${VERSION_TINY}"
8
9 #define MK_STR(s) # s
10 #define STR_DEFINE(t, s) t = MK_STR(s)
11
12 /* Is defined if OpenMD should be compiled with single precision arithmetic. */
13 #cmakedefine SINGLE_PRECISION
14
15 #ifdef _MSC_VER
16 #define _USE_MATH_DEFINES
17 #pragma warning( disable : 4996 )
18 #define strncasecmp _strnicmp
19 #define strcasecmp _stricmp
20 #endif
21
22 /* Is defined if the qhull library is available. */
23
24 #cmakedefine HAVE_QHULL 1
25 #cmakedefine HAVE_QHULL_2011 1
26 #ifdef DISABLE_QHULL
27 #undef HAVE_QHULL
28 #endif
29
30 /* have <conio.h> */
31 #cmakedefine HAVE_CONIO_H 1
32
33 /* have symbol strncasecmp */
34 #cmakedefine HAVE_STRNCASECMP 1
35
36 /* define if fftw3.h exists */
37 #cmakedefine HAVE_FFTW3_H 1
38
39 /* Define to 1 if you have the `z' library (-lz). */
40 #cmakedefine HAVE_LIBZ 1
41
42 /* Define to the one symbol short name of this package. */
43 #cmakedefine PACKAGE_TARNAME
44
45 /* Define to the version of this package. */
46 #cmakedefine PACKAGE_VERSION
47
48 /* Define to empty if `const' does not conform to ANSI C. */
49 #cmakedefine const
50
51 /* Code compiled in debug mode */
52 #cmakedefine debug
53
54 /* Define to `__inline__' or `__inline' if that's what the C compiler
55 calls it, or to nothing if 'inline' is not supported under any name. */
56 #ifndef __cplusplus
57 #undef inline
58 #endif
59
60 /* Define to rpl_malloc if the replacement function should be used. */
61 #undef malloc
62
63 /* Define to rpl_realloc if the replacement function should be used. */
64 #undef realloc
65
66 /* Define to `unsigned int' if <sys/types.h> does not define. */
67 #undef size_t
68
69 #ifdef SINGLE_PRECISION
70 typedef float RealType;
71 #ifdef IS_MPI
72 #define MPI_REALTYPE MPI_FLOAT
73 #define MPI_REALTYPE_INT MPI_FLOAT_INT
74 #endif
75 #else
76 typedef double RealType;
77 #ifdef IS_MPI
78 #define MPI_REALTYPE MPI_DOUBLE
79 #define MPI_REALTYPE_INT MPI_DOUBLE_INT
80 #endif
81 #endif
82
83 #endif // __CONFIG_H