forked from bruxisma/sessions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h.in
36 lines (27 loc) · 949 Bytes
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Red Sessions config header
#ifndef RED_SESSIONS_CONFIG
#define RED_SESSIONS_CONFIG
#define SESSIONS_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
#define SESSIONS_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define SESSIONS_VERSION_PATCH @PROJECT_VERSION_PATCH@
#define SESSIONS_VERSION (SESSIONS_VERSION_MAJOR*10000 + SESSIONS_VERSION_MINOR*100 + SESSIONS_VERSION_PATCH)
#cmakedefine SESSIONS_UTF8
#cmakedefine SESSIONS_NOEXTENTIONS
#if defined(_MSC_VER) || defined(SESSIONS_NOEXTENTIONS)
# define SESSIONS_AUTORUN
#else
// https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/Common-Function-Attributes.html#index-constructor-function-attribute
// https://stackoverflow.com/a/37012337
# define SESSIONS_AUTORUN [[gnu::constructor]]
#endif
// types of the platform environment
namespace red::session::detail
{
#ifdef WIN32
using envchar = wchar_t;
#else
using envchar = char;
#endif
using envblock = envchar**;
}
#endif // RED_SESSIONS_CONFIG