Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small cleanups in dijkstra
[simgrid.git] / include / simgrid_config.h.in
1 /* simgrid_config.h - Results of the configure made visible to user code    */
2
3 /* Copyright (c) 2009-2014. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef SIMGRID_PUBLIC_CONFIG_H
10 #define SIMGRID_PUBLIC_CONFIG_H
11
12 /** Define the version numbers of the used header files. 
13     sg_version() can be used to retrieve the version of the dynamic library.
14     But actually, if these numbers don't match, SimGrid refuses to start (so you shouldn't have to care about sg_version() yourself) */
15
16 #define SIMGRID_VERSION_MAJOR @SIMGRID_VERSION_MAJOR@
17 #define SIMGRID_VERSION_MINOR @SIMGRID_VERSION_MINOR@
18 #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
19
20 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
21
22 #define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
23
24 /* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
25  * (with Y and Z must be on two positions)*/
26
27 #define MAKE_SIMGRID_VERSION(major, minor, patch)       \
28   (100UL * (100UL * (major) + (minor)) + (patch))
29 #define SIMGRID_VERSION MAKE_SIMGRID_VERSION(SIMGRID_VERSION_MAJOR, \
30                                              SIMGRID_VERSION_MINOR, \
31                                              SIMGRID_VERSION_PATCH)
32
33 /* take care of DLL usage madness */
34
35 #ifdef _XBT_DLL_EXPORT
36         #ifndef DLL_EXPORT
37                 #define DLL_EXPORT
38         #endif
39 #else
40         #ifdef _XBT_DLL_STATIC
41                 #ifndef DLL_STATIC
42                         #define DLL_STATIC
43                 #endif
44         #else
45                 #ifndef DLL_EXPORT
46                         #define DLL_IMPORT
47                 #endif
48         #endif
49 #endif
50
51 #cmakedefine _XBT_WIN32 @_XBT_WIN32@    /*this variable is set if it is a windows platform*/
52 #cmakedefine _WIN32 @_WIN32@                    /*this variable is set if it is a 32 bits windows platform*/
53 #cmakedefine _WIN64 @_WIN64@                    /*this variable is set if it is a 64 bits  windows platform*/
54 #cmakedefine __VISUALC__ @__VISUALC__@
55 #ifdef _XBT_WIN32
56         #ifndef __GNUC__
57                 #cmakedefine __GNUC__ @__GNUC__@
58         #endif
59 #endif
60
61 /* Define to 1 if you have the <unistd.h> header file. */
62 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
63 /* Define to 1 if you have the <sys/time.h> header file. */
64 #cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@
65
66 /* Define to 1 if mmalloc is compiled in. */
67 #cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@
68
69 /* Get the config */
70 #undef SIMGRID_NEED_ASPRINTF
71 #undef SIMGRID_NEED_VASPRINTF
72 @simgrid_need_asprintf@
73 @simgrid_need_vasprintf@
74
75 /* Whether mallocators were enabled in ccmake or not. */
76 #define MALLOCATOR_COMPILED_IN @MALLOCATOR_IS_WANTED@
77
78 /* Define if xbt contexts are based on our threads implementation or not */
79 #cmakedefine HAVE_THREAD_CONTEXTS @HAVE_THREAD_CONTEXTS@
80
81 /* Jedule output  */
82 #cmakedefine HAVE_JEDULE @HAVE_JEDULE@
83
84 /* Tracking of latency bound */
85 #cmakedefine HAVE_LATENCY_BOUND_TRACKING @HAVE_LATENCY_BOUND_TRACKING@
86
87 /* If __thread is available */
88 #cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@
89
90 /* If Model-Checking support was requested */
91 #cmakedefine HAVE_MC @HAVE_MC@
92
93 #cmakedefine SIMGRID_HAVE_LIBSIG @SIMGRID_HAVE_LIBSIG@
94
95 #endif /* SIMGRID_PUBLIC_CONFIG_H */