[Bf-blender-cvs] [f523ec99d82] tmp_libupdate_34: Fix: build mantaflow build issue on windows

Ray Molenkamp noreply at git.blender.org
Sat Aug 20 01:38:00 CEST 2022


Commit: f523ec99d829baae49e87d6559203d49fdf326a4
Author: Ray Molenkamp
Date:   Fri Aug 19 17:37:42 2022 -0600
Branches: tmp_libupdate_34
https://developer.blender.org/rBf523ec99d829baae49e87d6559203d49fdf326a4

Fix: build mantaflow build issue on windows

boost 1.80 does not like it when snprintf gets
redefined

===================================================================

M	extern/mantaflow/helper/util/vectorbase.h

===================================================================

diff --git a/extern/mantaflow/helper/util/vectorbase.h b/extern/mantaflow/helper/util/vectorbase.h
index 3c7c6e6bc01..b05f90939d4 100644
--- a/extern/mantaflow/helper/util/vectorbase.h
+++ b/extern/mantaflow/helper/util/vectorbase.h
@@ -31,13 +31,6 @@
 #  undef max
 #endif
 
-// redefine usage of some windows functions
-#if defined(WIN32) || defined(_WIN32)
-#  ifndef snprintf
-#    define snprintf _snprintf
-#  endif
-#endif
-
 // use which fp-precision? 1=float, 2=double
 #ifndef FLOATINGPOINT_PRECISION
 #  define FLOATINGPOINT_PRECISION 1



More information about the Bf-blender-cvs mailing list