Commit e1829e56 authored by Norby, Tom's avatar Norby, Tom
Browse files

Use _snprintf for VS versions < 2015.

parent e6450423
Pipeline #101402 failed with stages
in 9 minutes and 30 seconds
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
#include "radixgeo/coordinateconversion.hh" #include "radixgeo/coordinateconversion.hh"
#include "radixmath/constants.hh" #include "radixmath/constants.hh"
#include <stdio.h>
#include <algorithm> #include <algorithm>
// forward declaration of stdio.h function #ifdef _WIN32
int snprintf(char* buf, size_t size, const char* fmt, ...); #if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif
namespace radix namespace radix
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment