Skip to content

Commit 36b4b91

Browse files
committed
Temporary attempt at a workaround for further MSVC restrict build failures.
It appears some versions of msvc use __declspec(restrict) in stdlib.h and subsidiary headers. Including those after defining 'restrict' to '__restrict' doesn't work. Try to get the buildfarm green to see whether there's further problems, by including stdlib.h just before said define.
1 parent 060b069 commit 36b4b91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/pg_config.h.win32

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,11 @@
687687
/* Visual Studio 2008 and upwards */
688688
#if (_MSC_VER >= 1500)
689689
/* works for C and C++ in msvc */
690+
/*
691+
* Temporary attempt at a workaround for stdlib.h's use of
692+
* declspec(restrict), conflicting with below define.
693+
*/
694+
#include <stdlib.h>
690695
#define restrict __restrict
691696
#else
692697
#define restrict

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy