From e10424bf5882d6993021a179cb68dae5159bc657 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 8 Dec 2017 19:28:43 +0100 Subject: [PATCH] win: polyfill ERROR_DEVICE_FEATURE_NOT_SUPPORTED definition for MinGW --- src/win.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/win.h b/src/win.h index e7fa39b..32d1804 100644 --- a/src/win.h +++ b/src/win.h @@ -25,4 +25,9 @@ #pragma warning(pop) #endif +#ifndef ERROR_DEVICE_FEATURE_NOT_SUPPORTED +/* Windows headers distributed with MinGW lack a definition for this. */ +#define ERROR_DEVICE_FEATURE_NOT_SUPPORTED 316L +#endif + #endif /* WEPOLL_WIN_H_ */