summaryrefslogtreecommitdiff
path: root/wchar.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-26 10:59:50 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-26 10:59:50 -0400
commitd29196a493b0d63ea543af2cab1db062ae39fce2 (patch)
treedbbbbfff7e201a36f98c977e2405fe6a00d8e35d /wchar.h
parentac27402efa3cb4d2e433a2a2f51e9ac34accf084 (diff)
use C2x style header versioning for include guards
Diffstat (limited to 'wchar.h')
-rw-r--r--wchar.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/wchar.h b/wchar.h
index 934181f..ef58065 100644
--- a/wchar.h
+++ b/wchar.h
@@ -1,5 +1,9 @@
-#ifndef __WCHAR_H__
-#define __WCHAR_H__
+#ifndef __STDC_VERSION_WCHAR_H__
+#if defined __STDC_VERSION__
+#define __STDC_VERSION_WCHAR_H__ __STDC_VERSION__
+#else
+#define __STDC_VERSION_WCHAR_H__ 1
+#endif
/*
UNG's Not GNU