aboutsummaryrefslogtreecommitdiff
path: root/src/unistr-fixed.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 00:12:44 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 00:12:44 -0400
commit80755477735baaea66f865c316aff036bebd8e2f (patch)
treeef11a3a91f4106c8f19a21af0215c27a61afc991 /src/unistr-fixed.h
parentb1d2120d5d20c0122cc0a61f2ca09f0bc754d14d (diff)
Clean up some unistr.h issues and expand some parse macros.
Diffstat (limited to 'src/unistr-fixed.h')
-rw-r--r--src/unistr-fixed.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unistr-fixed.h b/src/unistr-fixed.h
new file mode 100644
index 00000000..6e05ba4d
--- /dev/null
+++ b/src/unistr-fixed.h
@@ -0,0 +1,12 @@
+#pragma once
+
+// This is a workaround fix for an issue on some systems that don't have `__GLIBC__` defined
+// and run into problems with <unistr.h>
+
+#ifndef __GLIBC__
+#define __GLIBC__ 2
+#include <unistr.h> // IWYU pragma: export
+#undef __GLIBC__
+#else
+#include <unistr.h> // IWYU pragma: export
+#endif