]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix W64 build errors.
authorDaiki Ueno <ueno@gnu.org>
Fri, 21 Dec 2012 08:39:02 +0000 (17:39 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sat, 22 Dec 2012 09:24:00 +0000 (18:24 +0900)
ChangeLog
autogen.sh
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/intl-exports.c
gettext-runtime/intl/osdep.c
gettext-tools/ChangeLog
gettext-tools/woe32dll/export.h

index 1fe3f9c5c544d00787b255006023d616c59144c6..2cd8457e27e8ec809bb3ad602cf7ea5340fe412e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-12-21  Daiki Ueno  <ueno@gnu.org>
+
+       Fix W64 build errors.
+       * autogen.sh (GNULIB_MODULES_LIBASPRINTF): Add extern-inline, for
+       the last xsize.h update.
+       (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add locale,
+       not to have copies of locale.h in both libgrep and gnulib-lib.
+       (GNULIB_MODULES_LIBGETTEXTPO): Add close.
+
 2012-12-08  Daiki Ueno  <ueno@unixuser.org>
 
        * autogen.sh: Ignore libunistring tests which are known to fail.
index 9b1b29a41843084860f343e38e6c4f7e5ef5912c..ee70372feefce55a4a2e5e70e5e5ffb967f77110 100755 (executable)
@@ -109,6 +109,7 @@ if ! $skip_gnulib; then
       alloca
       errno
       verify
+      extern-inline
     '
     GNULIB_MODULES_LIBASPRINTF_OTHER='
     '
@@ -221,6 +222,7 @@ if ! $skip_gnulib; then
       extensions
       gettext-h
       include_next
+      locale
       localcharset
       malloc-posix
       mbrtowc
@@ -271,6 +273,7 @@ if ! $skip_gnulib; then
     # This is a subset of the GNULIB_MODULES_FOR_SRC.
     GNULIB_MODULES_LIBGETTEXTPO='
       basename
+      close
       c-ctype
       c-strcase
       c-strstr
index daee7965e2a59240240aa96a01a959fde501fd93..5a4066bb29f4dc577a9238fcaf54c200aff4c15a 100644 (file)
@@ -1,3 +1,10 @@
+2012-12-21  Daiki Ueno  <ueno@gnu.org>
+
+       Fix W64 build errors.
+       * intl-exports.c (IMP) [_WIN64]: Prefix "__imp_" instead of
+       "_imp__".
+       * osdep.c: Include intl-exports.c on mingw as well as Cygwin.
+
 2012-12-10  Daiki Ueno  <ueno@unixuser.org>
 
        * intl-compat.c: Fix typo in the copyright header.
index 4e43b061680b0873c1bee45d71bd83cf9cb41a56..a18fe5174eb5a64f64e4c7679bc93729d381cd23 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
  /* IMP(x) is a symbol that contains the address of x.  */
-#define IMP(x) _imp__##x
+#if _WIN64
+ /* mingw W64 changed the symbol prefix from W32 for MSVC
+    compatibility.  See the comments in
+    mingw-w64-headers/crt/_mingw_mac.h for more details. */
+# define IMP(x) __imp_##x
+#else
+# define IMP(x) _imp__##x
+#endif
 
  /* Ensure that the variable x is exported from the library, and that a
     pseudo-variable IMP(x) is available.  */
index 9ca44700425480074dfc70078ec113ae5fd47f49..7143d822e97bfebd86297d81d041ba1ad9e66b96 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if defined __CYGWIN__
+#if defined __CYGWIN__ || defined __MINGW32__
 # include "intl-exports.c"
 #elif defined __EMX__
 # include "os2compat.c"
index a259b3f664ef354cdfee32724dc307a2b817879b..a71fc2e2d2d74ac68a0f18c440346bc480dfa97d 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-21  Daiki Ueno  <ueno@gnu.org>
+
+       Fix W64 build errors.
+       * woe32dll/export.h (IMP) [_WIN64]: Prefix "__imp_" instead of
+       "_imp__".
+
 2012-12-17  Daiki Ueno  <ueno@unixuser.org>
 
        * configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
index 23eae9ab8e184308f918deec434673e545a8ad16..f454eccbd94bde05b445d79a7594bac85cde3068 100644 (file)
 #if defined __GNUC__ /* GCC compiler, GNU toolchain */
 
  /* IMP(x) is a symbol that contains the address of x.  */
+#if _WIN64
+ /* mingw W64 changed the symbol prefix from W32 for MSVC
+    compatibility.  See the comments in
+    mingw-w64-headers/crt/_mingw_mac.h for more details. */
+# define IMP(x) __imp_##x
+#else
 # define IMP(x) _imp__##x
+#endif
 
  /* Ensure that the variable x is exported from the library, and that a
     pseudo-variable IMP(x) is available.  */