Merge pull request #9416 from eruffaldi:f_9411_mingw_videoio

pull/9504/head
Vadim Pisarevsky 7 years ago
commit 048feeb3f0
  1. 3
      modules/videoio/CMakeLists.txt
  2. 6
      modules/videoio/src/cap_gstreamer.cpp

@ -78,6 +78,9 @@ endif()
if (WIN32 AND HAVE_DSHOW) if (WIN32 AND HAVE_DSHOW)
list(APPEND videoio_srcs ${CMAKE_CURRENT_LIST_DIR}/src/cap_dshow.cpp) list(APPEND videoio_srcs ${CMAKE_CURRENT_LIST_DIR}/src/cap_dshow.cpp)
list(APPEND videoio_hdrs ${CMAKE_CURRENT_LIST_DIR}/src/cap_dshow.hpp) list(APPEND videoio_hdrs ${CMAKE_CURRENT_LIST_DIR}/src/cap_dshow.hpp)
if (MINGW64)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTRSAFE_NO_DEPRECATE")
endif()
endif() endif()
if (WIN32 AND HAVE_MSMF) if (WIN32 AND HAVE_MSMF)

@ -87,6 +87,12 @@
#endif #endif
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
#if defined(__MINGW32__)
inline char *realpath(const char *path, char *resolved_path)
{
return _fullpath(resolved_path,path,PATH_MAX);
}
#endif
#define snprintf _snprintf #define snprintf _snprintf
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#define strcasecmp _stricmp #define strcasecmp _stricmp

Loading…
Cancel
Save