Skip to content

Commit 51c3128

Browse files
committed
fix: build mingw correctly in ffmepg encoder
1 parent 8b93b98 commit 51c3128

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/graphics/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if replay_video_rendering_enabled
2424
'video_renderer_embedded.cpp',
2525
)
2626
else
27-
28-
if host_machine.system() == 'darwin' or host_machine.system() == 'linux'
27+
cpp = meson.get_compiler('cpp')
28+
if host_machine.system() == 'darwin' or host_machine.system() == 'linux' or (cpp.get_id() == 'gcc' and host_machine.system() == 'windows')
2929
graphics_src_files += files(
3030
'video_renderer_unix.cpp',
3131
)

src/graphics/video_renderer_windows.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#include "video_renderer.hpp"
33

44
#define WIN32_LEAN_AND_MEAN
5+
#ifndef NOMINMAX
56
#define NOMINMAX
7+
#endif
68

79
#include <windows.h>
810

0 commit comments

Comments
 (0)