diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index 3be1c235aa..81604de7f9 100644 --- a/src/include/pg_config.h.win32 +++ b/src/include/pg_config.h.win32 @@ -687,6 +687,11 @@ /* Visual Studio 2008 and upwards */ #if (_MSC_VER >= 1500) /* works for C and C++ in msvc */ +/* + * Temporary attempt at a workaround for stdlib.h's use of + * declspec(restrict), conflicting with below define. + */ +#include #define restrict __restrict #else #define restrict