do not use WIN64/_WIN64 anymore - CMake did not set it anyway. Use WIN32 + __x86_64 or _M_X64 instead. Also, make VideoInput optional (WITH_VIDEOINPUT=ON/OFF) => now Mingw-dw2 can build OpenCV
This commit is contained in:
@@ -264,7 +264,7 @@ CV_INLINE IppiSize ippiSize(int width, int height)
|
||||
#ifdef __GNUC__
|
||||
#undef alloca
|
||||
#define alloca __builtin_alloca
|
||||
#elif defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64 || \
|
||||
#elif defined WIN32 || defined _WIN32 || \
|
||||
defined WINCE || defined _MSC_VER || defined __BORLANDC__
|
||||
#include <malloc.h>
|
||||
#elif defined HAVE_ALLOCA_H
|
||||
|
@@ -74,7 +74,7 @@
|
||||
|
||||
#elif defined WIN32 || defined _WIN32
|
||||
|
||||
#if defined _MSC_VER && !defined WIN64 && !defined _WIN64
|
||||
#if defined _MSC_VER && defined _M_IX86
|
||||
static inline int CV_XADD( int* addr, int delta )
|
||||
{
|
||||
int tmp;
|
||||
|
@@ -71,7 +71,7 @@
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER >= 1400 && defined _M_X64) || (__GNUC__ >= 4 && defined __x86_64__)
|
||||
#if defined WIN64
|
||||
#if defined WIN32
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
#include <emmintrin.h>
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
#ifdef HAVE_IPL
|
||||
#ifndef __IPL_H__
|
||||
#if defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64
|
||||
#if defined WIN32 || defined _WIN32
|
||||
#include <ipl.h>
|
||||
#else
|
||||
#include <ipl/ipl.h>
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif
|
||||
#endif // SKIP_INCLUDES
|
||||
|
||||
#if defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64
|
||||
#if defined WIN32 || defined _WIN32
|
||||
#define CV_CDECL __cdecl
|
||||
#define CV_STDCALL __stdcall
|
||||
#else
|
||||
@@ -125,14 +125,14 @@
|
||||
#ifndef CV_INLINE
|
||||
#if defined __cplusplus
|
||||
#define CV_INLINE inline
|
||||
#elif (defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64 || defined WINCE) && !defined __GNUC__
|
||||
#elif (defined WIN32 || defined _WIN32 || defined WINCE) && !defined __GNUC__
|
||||
#define CV_INLINE __inline
|
||||
#else
|
||||
#define CV_INLINE static
|
||||
#endif
|
||||
#endif /* CV_INLINE */
|
||||
|
||||
#if (defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64 || defined WINCE) && defined CVAPI_EXPORTS
|
||||
#if (defined WIN32 || defined _WIN32 || defined WINCE) && defined CVAPI_EXPORTS
|
||||
#define CV_EXPORTS __declspec(dllexport)
|
||||
#else
|
||||
#define CV_EXPORTS
|
||||
|
@@ -45,7 +45,7 @@ namespace cv
|
||||
{
|
||||
|
||||
// On Win64 optimized versions of DFT and DCT fail the tests (fixed in VS2010)
|
||||
#if (defined WIN64 || defined _WIN64) && defined _MSC_VER && _MSC_VER < 1600
|
||||
#if defined _MSC_VER && !defined CV_ICC && defined _M_X64 && _MSC_VER < 1600
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
|
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#if defined WIN32 || defined WIN64 || defined _WIN64 || defined WINCE
|
||||
#if defined WIN32 || defined _WIN32 || defined WINCE
|
||||
#include <tchar.h>
|
||||
#if defined _MSC_VER
|
||||
#if _MSC_VER >= 1400
|
||||
@@ -184,7 +184,7 @@ bool useOptimized()
|
||||
|
||||
int64 getTickCount()
|
||||
{
|
||||
#if defined WIN32 || defined WIN64 || defined _WIN64 || defined WINCE
|
||||
#if defined WIN32 || defined _WIN32 || defined WINCE
|
||||
LARGE_INTEGER counter;
|
||||
QueryPerformanceCounter( &counter );
|
||||
return (int64)counter.QuadPart;
|
||||
@@ -204,7 +204,7 @@ int64 getTickCount()
|
||||
|
||||
double getTickFrequency()
|
||||
{
|
||||
#if defined WIN32 || defined WIN64 || defined _WIN64 || defined WINCE
|
||||
#if defined WIN32 || defined _WIN32 || defined WINCE
|
||||
LARGE_INTEGER freq;
|
||||
QueryPerformanceFrequency(&freq);
|
||||
return (double)freq.QuadPart;
|
||||
@@ -266,7 +266,7 @@ int64 getCPUTickCount(void)
|
||||
|
||||
#endif
|
||||
|
||||
#elif defined _MSC_VER && defined WIN32 && !defined _WIN64
|
||||
#elif defined _MSC_VER && defined WIN32 && defined _M_IX86
|
||||
|
||||
int64 getCPUTickCount(void)
|
||||
{
|
||||
@@ -394,7 +394,7 @@ redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
|
||||
cvGuiBoxReport( int code, const char *func_name, const char *err_msg,
|
||||
const char *file, int line, void* )
|
||||
{
|
||||
#if (!defined WIN32 && !defined WIN64) || defined WINCE
|
||||
#if (!defined WIN32 && !defined _WIN32) || defined WINCE
|
||||
return cvStdErrReport( code, func_name, err_msg, file, line, 0 );
|
||||
#else
|
||||
if( code != CV_StsBackTrace && code != CV_StsAutoTrace )
|
||||
|
Reference in New Issue
Block a user