]> pd.if.org Git - pdclib.old/blobdiff - functions/locale/localeconv.c
PDCLIB-1 locale functions only included <_PDCLIB_locale.h>, not <locale.h>. This...
[pdclib.old] / functions / locale / localeconv.c
index e23fb6a3585d7f6f21398aa18a077d7f7a0dc267..5da63d01f9d78eace0c067ce1c7c73c68c96497e 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* localeconv( void )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -7,12 +5,12 @@
 */
 
 #include <locale.h>
-
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 struct lconv * localeconv( void )
 {
-    return &_PDCLIB_lconv;
+    return &_PDCLIB_threadlocale()->_Conv;
 }
 
 #endif