mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 22:57:53 +08:00
videoio for mingw32: added STRSAFE_NO_DEPRECATE and realpath
This commit is contained in:
parent
3b38eeaccf
commit
588ca5d126
@ -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…
Reference in New Issue
Block a user