summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-19 17:24:02 +0200
committerMax Kellermann <max@musicpd.org>2021-05-19 17:25:32 +0200
commita169a05e41e85916f8f64c3a1b0f3a361ce9b5bf (patch)
tree423171837801c154697f7b86242c28325e6417e2 /src/output
parenta6cb3139dbeac6ecd71d33c42a90a57148f290ff (diff)
win32, ...: avoid including windows.h
Include the most specific header documented by MSDN instead.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/WinmmOutputPlugin.cxx4
-rw-r--r--src/output/plugins/WinmmOutputPlugin.hxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/output/plugins/WinmmOutputPlugin.cxx b/src/output/plugins/WinmmOutputPlugin.cxx
index 1f4f180d8..66b3dc3b5 100644
--- a/src/output/plugins/WinmmOutputPlugin.cxx
+++ b/src/output/plugins/WinmmOutputPlugin.cxx
@@ -28,6 +28,10 @@
#include <array>
#include <iterator>
+#include <handleapi.h>
+#include <synchapi.h>
+#include <winbase.h> // for INFINITE
+
#include <stdlib.h>
#include <string.h>
diff --git a/src/output/plugins/WinmmOutputPlugin.hxx b/src/output/plugins/WinmmOutputPlugin.hxx
index e5d249f38..5e29121b8 100644
--- a/src/output/plugins/WinmmOutputPlugin.hxx
+++ b/src/output/plugins/WinmmOutputPlugin.hxx
@@ -26,7 +26,7 @@
#include "util/Compiler.h"
-#include <windows.h>
+#include <windef.h>
#include <mmsystem.h>
struct WinmmOutput;