Etterna 0.74.4
Loading...
Searching...
No Matches
config.in.hpp
1#ifndef CONFIG_HPP_
2#define CONFIG_HPP_
3
4/* Auto-generated config.h file powered by cmake. */
5
6/* Defined to 1 if <alloca.h> is found. */
7#cmakedefine HAVE_ALLOCA_H 1
8
9/* Defined to 1 if <dirent.h> is found. */
10#cmakedefine HAVE_DIRENT_H 1
11
12/* Defined to 1 if <inttypes.h> is found. */
13#cmakedefine HAVE_INTTYPES_H 1
14
15/* Defined to 1 if <stdint.h> is found. */
16#cmakedefine HAVE_STDINT_H 1
17
18/* Defined to 1 if <sys/param.h> is found. */
19#cmakedefine HAVE_SYS_PARAM_H 1
20
21/* Defined to 1 if <sys/utsname.h> is found. */
22#cmakedefine HAVE_SYS_UTSNAME_H 1
23
24/* Defined to 1 if <fcntl.h> is found. */
25#cmakedefine HAVE_FCNTL_H 1
26
27/* Defined to 1 if <unistd.h> is found. */
28#cmakedefine HAVE_UNISTD_H 1
29
30/* Defined to 1 if the underlying system provides the _mkdir function. */
31#cmakedefine HAVE__MKDIR 1
32
33/* Defined to 1 if the underlying system provides the mkdir function. */
34#cmakedefine HAVE_MKDIR 1
35
36/* Defined to 1 if the underlying system provides the _snprintf function. */
37#cmakedefine HAVE__SNPRINTF 1
38
39/* Defined to 1 if the underlying system provides the snprintf function. */
40#cmakedefine HAVE_SNPRINTF 1
41
42/* Defined to 1 if the underlying system provides the stricmp function. */
43#cmakedefine HAVE_STRICMP 1
44
45/* Defined to 1 if the underlying system provides the _stricmp function. */
46#cmakedefine HAVE__STRICMP 1
47
48/* Defined to 1 if the underlying system provides the strcasecmp function. */
49#cmakedefine HAVE_STRCASECMP 1
50
51/* Defined to 1 if <unistd.h> is found. */
52#cmakedefine HAVE_UNISTD_H 1
53
54/* Defined to 1 if the underlying system provides the pthread_mutex_timedlock function. */
55#cmakedefine HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
56
57/* Defined to 1 if the underlying system provides the pthread_cond_timedwait function. */
58#cmakedefine HAVE_PTHREAD_COND_TIMEDWAIT 1
59
60
61/* Defined to 1 if building on a windows system, and thus uses the windows loading window. */
62#cmakedefine NEED_WINDOWS_LOADING_WINDOW 1
63
64/* Defined to 1 if logging timing segment additions and removals. */
65#cmakedefine WITH_LOGGING_TIMING_DATA 1
66
67/* Defined to 1 if the PBS_MARQUEE symbol was found. */
68#cmakedefine HAVE_PBS_MARQUEE 1
69
70/* Defined to 1 if the PBM_SETMARQUEE symbol was found. */
71#cmakedefine HAVE_PBM_SETMARQUEE 1
72
73#if defined(NEED_WINDOWS_LOADING_WINDOW)
74#if !defined(HAVE_PBS_MARQUEE)
75#define PBS_MARQUEE 0x08
76#endif
77#if !defined(HAVE_PBM_SETMARQUEE)
78#define PBM_SETMARQUEE (WM_USER+10)
79#endif
80#endif
81
82#if defined(__GNUC__)
85#define PRINTF(a,b) __attribute__((format(__printf__,a,b)))
86#define CONST_FUNCTION __attribute__((const))
87#else
89#define PRINTF(a,b)
91#define CONST_FUNCTION
92#endif
93
94/* Ensure we have a function that acts like a size limited sprintf. */
95#if defined(HAVE_SNPRINTF)
96#elif defined(HAVE__SNPRINTF)
97#define snprintf _snprintf
98#else
99#error "No size limited sprintf function available. Aborting."
100#endif
101
102/* Ensure we have a function that acts like a case insensitive string comparison. */
103#if defined(HAVE_STRCASECMP)
104#elif defined(HAVE__STRICMP)
105#define strcasecmp _stricmp
106#elif defined(HAVE_STRICMP)
107#define strcasecmp stricmp
108#else
109#error "No case insensitive string comparison function available. Aborting."
110#endif
111
112/* Ensure we have a function that can create a directory on the file system. */
113#if defined(HAVE__MKDIR)
114#include <direct.h>
115#define mkdir(path, mode) _mkdir(path)
116#else
117#if !defined(HAVE_MKDIR)
118#error "No create directory function available. Aborting."
119#else
120#include <sys/types.h>
121#include <sys/stat.h>
122#if defined(__MINGW32__) || defined(__MINGW64__)
123#define mkdir(path, mode) mkdir(path)
124#endif
125#endif
126#endif
127
128
129#endif