Mercurial > mxe-octave
view src/msvc-gettext-1.patch @ 3150:65fc638bdd8e
[MSVC] fix incompatible definition of off_t betweeb GraphicsMagick and octave.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 18 Jul 2013 11:34:31 -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