update for HEAD-2003021201
[reactos.git] / lib / crtdll / string / strcoll.c
index 07f5e24..81e27d6 100644 (file)
@@ -1,28 +1,30 @@
 #include <windows.h>
-#include <crtdll/string.h>
+#include <msvcrt/string.h>
+
 /* Compare S1 and S2, returning less than, equal to or
    greater than zero if the collated form of S1 is lexicographically
    less than, equal to or greater than the collated form of S2.  */
 
 #if 1
-int strcoll (const char* s1, const char* s2)
+int strcoll(const char* s1, const char* s2)
 {
-       return strcmp(s1,s2);
+    return strcmp(s1, s2);
 }
 
-int _stricoll (const char* s1, const char* s2)
+int _stricoll(const char* s1, const char* s2)
 {
-       return _stricmp(s1,s2);
+    return _stricmp(s1, s2);
 }
+
 #else
-int strcoll (const char *s1,const char *s2)
+int strcoll (const char* s1,const char* s2)
 {
-   int ret;
-   ret = CompareStringA(LOCALE_USER_DEFAULT,0,s1,strlen(s1),s2,strlen(s2));
-   if (ret == 0)
-     return 0;
-   else 
-     return ret - 2;
-   return 0;
+    int ret;
+    ret = CompareStringA(LOCALE_USER_DEFAULT,0,s1,strlen(s1),s2,strlen(s2));
+    if (ret == 0)
+        return 0;
+    else 
+        return ret - 2;
+    return 0;
 }
 #endif