Mercurial > mxe-octave
view src/msvc-gettext-1.patch @ 3132:2733829a184e
[MSVC] enable glib compilation
- update glib package to 2.36.3
- move old glib patch to mingw-glib-1-fixes.patch; this is a temporary
solution, the patch contains many things that are not needed when
cross-compiling static libraries
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 17:55:13 -0400 |
parents | f8299bb6c872 |
children | 67bcfe6539c7 |
line wrap: on
line source
diff -ur gettext-0.18.2-orig/gettext-runtime/intl/export.h gettext-0.18.2/gettext-runtime/intl/export.h --- gettext-0.18.2-orig/gettext-runtime/intl/export.h 2012-12-04 01:28:58 -0500 +++ gettext-0.18.2/gettext-runtime/intl/export.h 2013-06-15 22:18:02 -0400 @@ -2,5 +2,13 @@ #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default"))) #else +#ifdef _MSC_VER +#ifdef BUILDING_LIBINTL +#define LIBINTL_DLL_EXPORTED __declspec(dllexport) +#else +#define LIBINTL_DLL_EXPORTED __declspec(dllimport) +#endif +#else #define LIBINTL_DLL_EXPORTED #endif +#endif