From e05abaed0467fa4231bd0665973aa6b42384a12c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 21 Aug 2013 11:04:37 +0800 Subject: [PATCH] Update config.h.win32.in Make entries more in sync with the items checked with autotools, and provide a MinGW declaration for _GLIB_EXTERN, taken from configure.ac. --- config.h.win32.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/config.h.win32.in b/config.h.win32.in index a03e447..0348809 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -890,7 +890,7 @@ #endif /* using the system-supplied PCRE library */ -/* This is defined in the *_PCRE configurations */ +/* This is defined in the *_PCRE MSVC project configs */ /* #undef USE_SYSTEM_PCRE */ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most @@ -914,10 +914,11 @@ /* #undef _FILE_OFFSET_BITS */ /* defines how to decorate public symbols while building */ -#define _GLIB_EXTERN __declspec (dllexport) - -/* Make all glibc extensions visible */ -/* #undef _GNU_SOURCE */ +#ifdef _MSC_VER +#define _GLIB_EXTERN __declspec (dllexport) extern +#else +#define _GLIB_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern +#endif /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ -- 2.7.4