Skip to content

Commit 844ed5d

Browse files
committed
Don't use __declspec (dllimport) for PGDLLEXPORT to reduce warnings
by gcc version 4 on mingw and cygwin. We don't use dllexport here because dllexport and dllwrap don't work well together.
1 parent b47953f commit 844ed5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/include/port/cygwin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
#define PGDLLIMPORT __declspec (dllimport)
2020
#endif
2121

22-
#define PGDLLEXPORT __declspec (dllimport)
22+
#define PGDLLEXPORT

src/include/port/win32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#ifdef _MSC_VER
6262
#define PGDLLEXPORT __declspec (dllexport)
6363
#else
64-
#define PGDLLEXPORT __declspec (dllimport)
64+
#define PGDLLEXPORT
6565
#endif
6666
#else /* not CYGWIN, not MSVC, not MingW */
6767
#define PGDLLIMPORT

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