summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_rtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_rtp.cpp')
-rw-r--r--libmpdemux/demux_rtp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index 5a0c8a32be..5fd47f7498 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -2,6 +2,10 @@
////////// and the "LIVE.COM Streaming Media" libraries:
extern "C" {
+// on MinGW, we must include windows.h before the things it conflicts
+#ifdef __MINGW32__ // with. they are each protected from
+#include <windows.h> // windows.h, but not the other way around.
+#endif
#include "demux_rtp.h"
#include "stheader.h"
}