Commit 048feeb3 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #9416 from eruffaldi:f_9411_mingw_videoio

parents b00dff83 588ca5d1
...@@ -78,6 +78,9 @@ endif() ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment