]> granicus.if.org Git - taglib/commitdiff
Revert "Reorder CMake checks for sprintf() variants."
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 16:59:36 +0000 (01:59 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 16:59:36 +0000 (01:59 +0900)
This reverts commit c69364d83115950b24e6baa6b9841a244d149d91.

ConfigureChecks.cmake

index 374fa7ab7dcbe2e2a9cabb92c9dd49a7e3e2f0bc..2a45226e7a6ade953f6eacc374dc203a6f6f9d0b 100644 (file)
@@ -211,20 +211,20 @@ check_cxx_source_compiles("
   #include <cstdio>
   int main() {
     char buf[20];
-    sprintf_s(buf, \"%d\", 1);
+    snprintf(buf, 20, \"%d\", 1);
     return 0;
   }
-" HAVE_SPRINTF_S)
+" HAVE_SNPRINTF)
 
-if(NOT HAVE_SPRINTF_S)
+if(NOT HAVE_SNPRINTF)
   check_cxx_source_compiles("
     #include <cstdio>
     int main() {
       char buf[20];
-      snprintf(buf, 20, \"%d\", 1);
+      sprintf_s(buf, \"%d\", 1);
       return 0;
     }
-  " HAVE_SNPRINTF)
+  " HAVE_SPRINTF_S)
 endif()
 
 # Check for libz using the cmake supplied FindZLIB.cmake