From b81b9311f6bd9f712f18a1436b799cbe0ec542e5 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 28 Jul 2021 15:00:38 +0800 Subject: [PATCH] config.h.win32.in: Define HAVE_SETUP_DI_GET_DEVICE_PROPERTY_W ... on Visual Studio, so that we will not have warnings from defining the prototype SetupDiGetDevicePropertyW() unnessarily. --- config.h.win32.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.h.win32.in b/config.h.win32.in index d0546db297..9bbf65fe10 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -144,6 +144,11 @@ #define HAVE_ROUND 1 #endif +/* Define to 1 if SetupDiGetDevicePropertyW() is available */ +#ifdef _MSC_VER +#define HAVE_SETUP_DI_GET_DEVICE_PROPERTY_W 1 +#endif + /* Define to 1 if sincos() is available */ /* #undef HAVE_SINCOS */