summaryrefslogtreecommitdiff
path: root/wrmr.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrmr.h')
-rw-r--r--wrmr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wrmr.h b/wrmr.h
index fcbfc22..7d22ee2 100644
--- a/wrmr.h
+++ b/wrmr.h
@@ -58,4 +58,10 @@ typedef uintptr_t uptr;
# define ASSUME(...) do if (!(__VA_ARGS__)) UNREACHABLE_MSG("assumption failed: " #__VA_ARGS__); while(0);
#endif
+#if __STDC_VERSION__ >= 202311L
+# define TYPEOF(...) typeof(__VA_ARGS__)
+#else
+# define TYPEOF(...) __typeof__(__VA_ARGS__)
+#endif
+
#endif