]> git.lyx.org Git - lyx.git/blobdiff - src/support/fmt.C
one small private fix in mathed, put noncopyable and tie into boost namespace
[lyx.git] / src / support / fmt.C
index d7b4897e0829fcfa3169732659305da3aeadc2f7..d982681168a9efd6c48643ee90cfd3a0d1875008 100644 (file)
@@ -2,7 +2,7 @@
 #include <cstdio>
 #include <cstdarg>
 
-#ifndef HAVE_VSNPRINTF
+#ifndef HAVE_DECL_VSNPRINTF
 #include "support/snprintf.h"
 #endif
 
@@ -33,7 +33,7 @@ string fmt(char const * fmtstr ...)
        va_list ap;
        while (true) {
                va_start(ap, fmtstr);
-               int const r = ::vsnprintf(str, size, fmtstr, ap);
+               int const r = vsnprintf(str, size, fmtstr, ap);
                va_end(ap);
                if (r == -1) { // size is too small
                        delete [] str;