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

Commitc554bf8

Browse files
committed
Fix definition of "errcode" for MSVC.
Hiroshi Saito
1 parent2392cdb commitc554bf8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎src/include/c.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/include/c.h,v 1.208 2006/07/29 17:35:07 momjian Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.209 2006/08/08 18:49:14 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -60,11 +60,9 @@
6060

6161
#if defined(_MSC_VER)|| defined(__BORLANDC__)
6262
#defineWIN32_ONLY_COMPILER
63-
#defineerrcode __vc_errcode
6463
#if defined(__BORLANDC__)|| (_MSC_VER>1400)
6564
#include<crtdefs.h>
6665
#endif
67-
#undef errcode
6866
#endif
6967

7068
#include<stdio.h>

‎src/include/port/win32.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.54 2006/07/30 01:45:21 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.55 2006/08/08 18:49:14 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -262,6 +262,9 @@ typedef unsigned short mode_t;
262262
#defineinline __inline
263263
#define__inline__ __inline
264264

265+
#undef errcode
266+
#defineerrcode __vc_errcode
267+
265268
#define_S_IRWXU(_S_IREAD | _S_IWRITE | _S_IEXEC)
266269
#define_S_IXUSR_S_IEXEC
267270
#define_S_IWUSR_S_IWRITE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp