aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
blob: e5bfcfed20f5e1893c2adefb4c28246fcd9f64ae (plain) (blame)
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
/* This compatibility header was generated by the libcompat gen script.
   You can find it over at https://git.sr.ht/~mango/libcompat. */

#ifndef LIBCOMPAT_COMPAT_H
#define LIBCOMPAT_COMPAT_H

#if __STDC_VERSION__ >= 202311L
#	define LIBCOMPAT_IS_23 1
#endif

#if !LIBCOMPAT_IS_23
#	include <stdbool.h> /* IWYU pragma: export */
#endif

#if !LIBCOMPAT_IS_23
#	ifndef NULL
#		include <stddef.h> /* IWYU pragma: export */
#	endif
#	define nullptr NULL
#endif

#if !LIBCOMPAT_IS_23
#	define static_assert(e, ...) _Static_assert(e, ""__VA_ARGS__)
#endif

#endif /* !LIBCOMPAT_COMPAT_H */