diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-06 19:49:25 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-29 17:32:21 +0800 |
commit | 1147da131ad13e583e73fed956e5c944e1497bf4 (patch) | |
tree | fb3cd7cfa281e4409946cbc6bdf3534c9aa00985 /config.h.win32.in | |
parent | bbb38aa2da449810989d2bdadad900ffc48846d8 (diff) | |
download | pango-1147da131ad13e583e73fed956e5c944e1497bf4.tar.gz |
Export symbols with compiler directives if possible
Add a configure check to see whether compiler directives are available
for exporting symbols, and use them if so. Likewise, update
the Visual Studio projects and config.h.win32.in to do likewise for
Windows builds.
We can then drop the .def files that were used to export symbols on
Windows builds, which should clean up things a bit.
Diffstat (limited to 'config.h.win32.in')
-rw-r--r-- | config.h.win32.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.win32.in b/config.h.win32.in index 15dadbab..4f05e112 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -144,3 +144,10 @@ /* Version number of package */ #define VERSION "@PANGO_VERSION@" + +/* defines how to decorate public symbols while building */ +#ifdef _MSC_VER +#define _PANGO_EXTERN __declspec(dllexport) extern +#else +#define _PANGO_EXTERN __attribute__((visibility("default"))) __declspec(dllexport) extern +#endif |