]> pd.if.org Git - pdclib/blobdiff - functions/string/strcoll.c
Added #ifdef to allow regression against system lib.
[pdclib] / functions / string / strcoll.c
index 74a8aadb9a84cbb312c0d19f564730d3a509140e..4b7af32a8f1767d2875a9a1ed06729a5e0901b12 100644 (file)
@@ -8,15 +8,18 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-/* TODO: Dummy function, PDCLib does not support locales yet. */
+#include <string.h>
 
-int strcmp( const char * s1, const char * s2 );
+#ifndef REGTEST
 
+/* TODO: Dummy function, PDCLib does not support locales yet. */
 int strcoll( const char * s1, const char * s2 )
 {
     return strcmp( s1, s2 );
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>