PatchworkOS
da8a090
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
#ifndef _AUX_CONFIG_H
2
#define _AUX_CONFIG_H 1
3
4
#ifndef _IS_STATIC
5
#define _IS_STATIC 1
6
#endif
7
8
///////////////////////////////////////////////
9
10
#if (__STDC_WANT_LIB_EXT1__ + 0) != 0
11
#define _USE_ANNEX_K 1
12
#else
13
#define _USE_ANNEX_K 0
14
#endif
15
16
#if defined(__cplusplus) || !defined(__STDC_VERSION) || __STDC_VERSION__ < 199901L
17
#define _RESTRICT
18
#else
19
#define _RESTRICT restrict
20
#endif
21
22
#if defined(__cplusplus) && __cplusplus >= 201103L
23
#define _NORETURN [[noreturn]]
24
#else
25
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
26
#define _NORETURN _Noreturn
27
#else
28
#define _NORETURN
29
#endif
30
#endif
31
32
#if defined(__cplusplus) || !defined(__STDC_VERSION) || __STDC_VERSION__ < 199901L
33
#define _RESTRICT
34
#define _INLINE
35
#else
36
#define _RESTRICT restrict
37
#define _INLINE inline
38
#endif
39
40
#ifdef _IS_STATIC
41
#define _PUBLIC
42
#define _LOCAL
43
#else
44
#if defined _WIN32 || defined __CYGWIN__
45
#ifdef _BUILD
46
#ifdef __GNUC__
47
#define _PUBLIC __attribute__((dllexport))
48
#else
49
#define _PUBLIC __declspec(dllexport)
50
#endif
51
#else
52
#ifdef __GNUC__
53
#define _PUBLIC __attribute__((dllimport))
54
#else
55
#define _PUBLIC __declspec(dllimport)
56
#endif
57
#endif
58
#define _LOCAL
59
#else
60
#if __GNUC__ >= 4
61
#define _PUBLIC __attribute__((visibility("default")))
62
#define _LOCAL __attribute__((visibility("hidden")))
63
#else
64
#define _PUBLIC
65
#define _LOCAL
66
#endif
67
#endif
68
69
#endif
70
71
#endif
include
libstd
_internal
config.h
Generated on Fri Dec 12 2025 00:22:10 for PatchworkOS by
1.9.8