]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
various changes
[lyx.git] / src / support / lstrings.h
index 73971a78b9d185a145b49c5c75714736236e56ad..2477b1fff6ff1928a0f103e24df68d90340d6dae 100644 (file)
@@ -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 
 }
 
 ///