]> pd.if.org Git - pdclib/blobdiff - internals/_PDCLIB_locale.h
PDCLIB-2 PDCLIB-9: Add char32/char16 conversions to header, incl. optional extras...
[pdclib] / internals / _PDCLIB_locale.h
diff --git a/internals/_PDCLIB_locale.h b/internals/_PDCLIB_locale.h
new file mode 100644 (file)
index 0000000..bed89b5
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef __PDCLIB_LOCALE_H
+#define __PDCLIB_LOCALE_H __PDCLIB_LOCALE_H
+#include <locale.h>
+
+#define _PDCLIB_threadlocale() (uselocale(NULL))
+
+struct _PDCLIB_locale {
+    struct _PDCLIB_charcodec    *_Codec;
+    struct lconv                 _Conv;
+};
+
+#endif