rework config.m4
[m6w6/ext-psi] / config.psi_stddef.m4
diff --git a/config.psi_stddef.m4 b/config.psi_stddef.m4
new file mode 100644 (file)
index 0000000..7c99d6c
--- /dev/null
@@ -0,0 +1,11 @@
+AC_DEFUN(PSI_CHECK_STDDEF, [
+    AC_CHECK_HEADERS(stddef.h)
+    PSI_TYPE(ptrdiff_t, int)
+    PSI_CONST(PTRDIFF_MIN, int)
+    PSI_CONST(PTRDIFF_MAX, int)
+    PSI_TYPE(size_t, uint)
+    PSI_CONST(SIZE_MAX, int)
+    PSI_TYPE(wchar_t, int)
+    PSI_CONST(WCHAR_MIN, int)
+    PSI_CONST(WCHAR_MAX, int)
+])