diff src/msvc-gettext-1.patch @ 3061:f8299bb6c872

Initial support for native MSVC compilation. * add MSVC support files: compiler wrappers and support libraries * adapt libiconv to work with MSVC * adapt gettext to work with MSVC
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 17 Jun 2013 22:43:11 -0400
parents
children 67bcfe6539c7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/msvc-gettext-1.patch	Mon Jun 17 22:43:11 2013 -0400
@@ -0,0 +1,17 @@
+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