vcpkg/ports/mathgl/fix_arma_sprintf.patch
wtywtykk 9502b2044d
[mathgl] Update to v2.5 (#22081)
* [mathgl] Update to v2.5 and apply fixes

* Update CI baseline
2021-12-28 15:11:14 -08:00

15 lines
435 B
Diff

diff --git "a/include/mgl2/define.h" "b/include/mgl2/define.h"
index e23ec04..8e79086 100644
--- "a/include/mgl2/define.h"
+++ "b/include/mgl2/define.h"
@@ -141,7 +140,9 @@ typedef long msize;
#define getcwd _getcwd
#define chdir _chdir // BORLAND has chdir
#endif
+#if (_MSC_VER<1500)
#define snprintf _snprintf
+#endif
#if (_MSC_VER<1600) // based on https://hg.python.org/cpython/rev/9aedb876c2d7
#define hypot _hypot
#endif