]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
various changes
[lyx.git] / src / support / lstrings.h
index 1878476b2bbde65adb8167369960d19927726c60..2477b1fff6ff1928a0f103e24df68d90340d6dae 100644 (file)
@@ -16,7 +16,7 @@
 #pragma interface
 #endif
 
-#include <cstring>
+//#include <cstring>
 #include <cctype>
 
 #include "Lsstream.h"
@@ -34,14 +34,22 @@ int compare_no_case(string const & s, string const & s2, unsigned int len);
 inline
 int compare(char const * a, char const * b)
 {
+#ifndef CXX_GLOBAL_CSTD
+       return std::strcmp(a, b);
+#else
        return strcmp(a, b);
+#endif 
 }
 
 ///
 inline
 int compare(char const * a, char const * b, unsigned int len)
 {
+#ifndef CXX_GLOBAL_CSTD
+       return std::strncmp(a, b, len);
+#else
        return strncmp(a, b, len);
+#endif 
 }
 
 ///