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

Commite54b0cb

Browse files
committed
PGDLLEXPORT is __declspec (dllexport) only on MSVC,
but is __declspec (dllimport) on other compilersbecause cygwin and mingw don't like dllexport.
1 parentfe76f93 commite54b0cb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎src/include/port/cygwin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.8 2010/05/27 07:59:48 itagaki Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.9 2010/05/28 16:34:15 itagaki Exp $ */
22

33
#include<cygwin/version.h>
44

@@ -19,4 +19,4 @@
1919
#definePGDLLIMPORT __declspec (dllimport)
2020
#endif
2121

22-
#definePGDLLEXPORT __declspec (dllexport)
22+
#definePGDLLEXPORT __declspec (dllimport)

‎src/include/port/win32.h

Lines changed: 5 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.94 2010/05/27 07:59:48 itagaki Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.95 2010/05/28 16:34:15 itagaki Exp $ */
22

33
#if defined(_MSC_VER)|| defined(__BORLANDC__)
44
#defineWIN32_ONLY_COMPILER
@@ -58,7 +58,11 @@
5858
#definePGDLLIMPORT __declspec (dllimport)
5959
#endif
6060

61+
#ifdef_MSC_VER
6162
#definePGDLLEXPORT __declspec (dllexport)
63+
#else
64+
#definePGDLLEXPORT __declspec (dllimport)
65+
#endif
6266

6367
#else/* not CYGWIN, not MSVC, not MingW */
6468
#definePGDLLIMPORT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp