aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
new file mode 100644
index 0000000..fedea6a
--- /dev/null
+++ b/src/compat.h
@@ -0,0 +1,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>
+#endif
+
+#if !LIBCOMPAT_IS_23
+# ifndef NULL
+# include <stddef.h>
+# endif
+# define nullptr NULL
+#endif
+
+#if !LIBCOMPAT_IS_23
+# define static_assert(e, ...) _Static_assert(e, ""__VA_ARGS__)
+#endif
+
+#endif /* !LIBCOMPAT_COMPAT_H */