]> git.mxchange.org Git - simgear.git/commitdiff
Some Linux platforms need <cstdio> for snprintf.
authorJames Turner <zakalawe@mac.com>
Thu, 13 Feb 2014 15:31:58 +0000 (15:31 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 13 Feb 2014 15:31:58 +0000 (15:31 +0000)
simgear/bucket/newbucket.cxx

index 1e59205a255f6ba3c1981ce6c9965f614c7240a2..e300def11f7f83382b332dfd3fa405d4f17f9fde 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 
 #include <cmath>
+#include <cstdio> // some platforms need this for ::snprintf
 #include <iostream>
 
 #include <simgear/misc/sg_path.hxx>
@@ -214,7 +215,7 @@ std::string SGBucket::gen_base_path() const {
        main_lat *= -1;
     }
 
-    snprintf(raw_path, 256, "%c%03d%c%02d/%c%03d%c%02d", 
+    ::snprintf(raw_path, 256, "%c%03d%c%02d/%c%03d%c%02d",
            hem, top_lon, pole, top_lat, 
            hem, main_lon, pole, main_lat);