diff --git a/sys/wasapi/gstwasapiutil.c b/sys/wasapi/gstwasapiutil.c index c689f506f2..5563ee79bd 100644 --- a/sys/wasapi/gstwasapiutil.c +++ b/sys/wasapi/gstwasapiutil.c @@ -32,6 +32,7 @@ GST_DEBUG_CATEGORY_EXTERN (gst_wasapi_debug); #if defined(_MSC_VER) #include #elif !defined(PKEY_Device_FriendlyName) +#include #include DEFINE_PROPERTYKEY (PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14); diff --git a/sys/wasapi/gstwasapiutil.h b/sys/wasapi/gstwasapiutil.h index 4fa2e08d14..235db0abfc 100644 --- a/sys/wasapi/gstwasapiutil.h +++ b/sys/wasapi/gstwasapiutil.h @@ -25,7 +25,9 @@ #include #include +#ifdef _MSC_VER #include +#endif #include #include