fixed compilation for vs2008
authorAnatoly Baksheev <no@email>
Sun, 17 Nov 2013 10:03:38 +0000 (14:03 +0400)
committerAnatoly Baksheev <no@email>
Sun, 17 Nov 2013 10:13:13 +0000 (14:13 +0400)
modules/objdetect/src/erfilter.cpp
modules/photo/test/test_hdr.cpp
modules/photo/test/test_precomp.hpp

index 7ab258a..52743af 100644 (file)
 #include "precomp.hpp"
 #include <fstream>
 
-#ifndef INT32_MAX
-#define __STDC_LIMIT_MACROS
-#include <stdint.h>
+#if defined _MSC_VER && _MSC_VER == 1500
+    typedef int int_fast32_t;
+#else
+    #ifndef INT32_MAX
+    #define __STDC_LIMIT_MACROS
+    #include <stdint.h>
+    #endif
 #endif
 
 using namespace std;
index d095c01..1d232b3 100644 (file)
@@ -40,9 +40,6 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include <string>
-#include <algorithm>
-#include <fstream>
 
 using namespace cv;
 using namespace std;
index 5b22a1c..336e5f8 100644 (file)
@@ -13,5 +13,9 @@
 #include "opencv2/ts.hpp"
 #include "opencv2/photo.hpp"
 #include "opencv2/highgui.hpp"
+#include <string>
+#include <algorithm>
+#include <fstream>
+#include <ctime>
 
 #endif