Blender Git Commit Log
Git Commits -> Revision dbc485f
Revision dbc485f by Joshua Leung (depsgraph_refactor) December 1, 2014, 05:46 (GMT) |
Hacky kludge fixes to get mingw64 to compile - "finite()" issues * finite() is not defined on mingw64 when using c++11 * isfinite() can be used instead, but, to use it, you need to #include <cmath> and using std::isfinite; to each offending file where finite() may get called, which is basically every file that includes BLI_math.h ==> math_vector_inline.c * In this patch, we define our own wrapper for finite() (via the C code in blenlib, which is free of all this C++ crapiness), which the C++ code can then feast on. The name though needs 2 underscores, as the single-underscore version (_finite) causes conflicts with symbols from dll's (i.e. most likely conflicting with the MSVC _finite(), which mingw-C++11 *still* doesn't see either). |
Commit Details:
Full Hash: dbc485fb8db840508dc334a53c0c22819f943736
Parent Commit: 3c479e2
Lines Changed: +23, -0