Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36b4b91

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.hand subsidiary headers. Including those after defining 'restrict' to'__restrict' doesn't work. Try to get the buildfarm green to seewhether there's further problems, by including stdlib.h just beforesaid define.
1 parent060b069 commit36b4b91

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)

[8]ページ先頭

©2009-2025 Movatter.jp