passing structs
[m6w6/ext-psi] / m4 / stdlib.m4
index e521d43731db13407326ea96cd2a13e0ea970004..de4c688a60cba541b63f05e789baace4aab5476f 100644 (file)
@@ -1,6 +1,6 @@
-AC_DEFUN(PSI_CHECK_STDLIB, [
+PSI_CHECK_STDLIB() {
        AC_CHECK_HEADERS(stdlib.h)
-       
+
        PSI_STRUCT(div_t, [
                int quot,
                int rem
@@ -13,7 +13,8 @@ AC_DEFUN(PSI_CHECK_STDLIB, [
        PSI_CONST(EXIT_FAILURE, int)
        PSI_CONST(EXIT_SUCCESS, int)
        PSI_CONST(RAND_MAX, int)
-       PSI_CONST(MB_CUR_MAX, int)
+       
+       PSI_MACRO(int MB_CUR_MAX)
 
        PSI_DECL(void _Exit, [(int status)])
        PSI_DECL(void abort, [()])
@@ -21,7 +22,7 @@ AC_DEFUN(PSI_CHECK_STDLIB, [
        PSI_DECL(double atof, [(char *str)])
        PSI_DECL(int atoi, [(char *str)])
        PSI_DECL(long atol, [(char *str)])
-       dnl PSI_DECL(div_t div, [(int numerator, int denominator)])
+       PSI_DECL(div_t div, [(int numerator, int denominator)])
        PSI_DECL(double drand48, [()])
        PSI_DECL(double erand48, [(unsigned short xsubi@<:@3@:>@)])
        PSI_DECL(void exit, [(int status)])
@@ -65,5 +66,4 @@ AC_DEFUN(PSI_CHECK_STDLIB, [
        PSI_DECL(int unsetenv, [(char *var)])
        PSI_DECL(size_t wcstombs, [(char *dest, wchar_t *src, size_t n)])
        PSI_DECL(int wctomb, [(char *s, wchar_t wc)])
-])
-
+}