timeapi.h is missing in our MinGW toolchain. Include mmsystem.h
header instead, which defines struct and APIs in case of our MinGW
toolchain. Note that in case of native Windows10 SDK (MSVC build),
mmsystem.h will include timeapi.h
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2153>
#include <string>
#ifdef HAVE_WINMM
#include <string>
#ifdef HAVE_WINMM
#endif
GST_DEBUG_CATEGORY_EXTERN (gst_d3d11_decoder_debug);
#endif
GST_DEBUG_CATEGORY_EXTERN (gst_d3d11_decoder_debug);
'gstd3d11screencapturesrc.cpp']
# multimedia clock is desktop only API
'gstd3d11screencapturesrc.cpp']
# multimedia clock is desktop only API
- if winmm_lib.found() and cc.has_header('timeapi.h')
+ if winmm_lib.found() and cc.has_header('mmsystem.h')
extra_args += ['-DHAVE_WINMM']
extra_dep += [winmm_lib]
endif
extra_args += ['-DHAVE_WINMM']
extra_dep += [winmm_lib]
endif
#ifdef HAVE_WINMM
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef HAVE_WINMM
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "gst-play-kb.h"
#endif
#include "gst-play-kb.h"
if not building_for_uwp
winmm_lib = cc.find_library('winmm', required: false)
if not building_for_uwp
winmm_lib = cc.find_library('winmm', required: false)
- if winmm_lib.found() and cc.has_header('timeapi.h')
+ if winmm_lib.found() and cc.has_header('mmsystem.h')
extra_args += ['-DHAVE_WINMM']
extra_deps += [winmm_lib]
endif
extra_args += ['-DHAVE_WINMM']
extra_deps += [winmm_lib]
endif
#include <locale.h> /* for LC_ALL */
#include "tools.h"
#ifdef HAVE_WINMM
#include <locale.h> /* for LC_ALL */
#include "tools.h"
#ifdef HAVE_WINMM
#endif
extern volatile gboolean glib_on_error_halt;
#endif
extern volatile gboolean glib_on_error_halt;
if gst_parse
if host_system == 'windows' and not building_for_uwp
winmm_lib = cc.find_library('winmm', required: false)
if gst_parse
if host_system == 'windows' and not building_for_uwp
winmm_lib = cc.find_library('winmm', required: false)
- if winmm_lib.found() and cc.has_header('timeapi.h')
+ if winmm_lib.found() and cc.has_header('mmsystem.h')
extra_launch_dep += [winmm_lib]
extra_launch_arg += ['-DHAVE_WINMM']
endif
extra_launch_dep += [winmm_lib]
extra_launch_arg += ['-DHAVE_WINMM']
endif