From: James Turner Date: Thu, 13 Feb 2014 13:23:43 +0000 (+0000) Subject: Fix MSVC build. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=574d459f4ecf400e8eac762a910a71597fe35321;p=simgear.git Fix MSVC build. --- diff --git a/simgear/bucket/newbucket.cxx b/simgear/bucket/newbucket.cxx index 245b6f14..1e59205a 100644 --- a/simgear/bucket/newbucket.cxx +++ b/simgear/bucket/newbucket.cxx @@ -287,7 +287,7 @@ SGBucket SGBucket::sibling(int dx, int dy) const std::string SGBucket::gen_index_str() const { char tmp[20]; - std::snprintf(tmp, 20, "%ld", + ::snprintf(tmp, 20, "%ld", (((long)lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x); return (std::string)tmp;