Fix MinGW compilation:
authorAntony Riakiotakis <kalast@gmail.com>
Sun, 4 Dec 2011 14:43:37 +0000 (14:43 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Sun, 4 Dec 2011 14:43:37 +0000 (14:43 +0000)
define __MSVCRT_VERSION__ to 0x0700 (microsoft runtime msvcr70.dll) so _aligned_malloc is defined.

extern/libmv/libmv/tracking/brute_region_tracker.cc

index 29b0fc5ff38af972664b5a935990f5434a165393..5b840e10857905da301f87e2f4a416a95836a268 100644 (file)
 
 #ifndef __APPLE__
 // Needed for memalign on Linux and _aligned_alloc on Windows.
+#ifdef FREE_WINDOWS
+/* make sure _aligned_malloc is included */
+#define __MSVCRT_VERSION__ 0x0700
+#endif
+
 #include <malloc.h>
 #else
 // Apple's malloc is 16-byte aligned, and does not have malloc.h, so include