]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update from gnulib.
authorDaiki Ueno <ueno@gnu.org>
Sun, 7 Jul 2013 00:17:47 +0000 (09:17 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sun, 7 Jul 2013 04:58:57 +0000 (13:58 +0900)
gettext-runtime/intl/vasnprintf.c
gettext-runtime/intl/verify.h
gettext-runtime/libasprintf/vasnprintf.c
gettext-runtime/m4/lock.m4

index 93ee955d5d500131db0c5a1c1a38f738720f9efa..ecccd86b2664601a2ad1fead3fac44bf4f20f38f 100644 (file)
@@ -5153,7 +5153,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                 size_t tmp_length =
                                   MAX_ROOM_NEEDED (&a, dp->arg_index,
                                                    dp->conversion, type, flags,
-                                                   width, has_precision,
+                                                   has_width ? width : 0,
+                                                   has_precision,
                                                    precision, pad_ourselves);
 
                                 if (maxlen < tmp_length)
index 8445e3db5202eab9e3954a407cfe56efd2849088..1acc737f10a1de8a924b962972320110be7677b3 100644 (file)
@@ -31,7 +31,9 @@
    Use this only with GCC.  If we were willing to slow 'configure'
    down we could also use it with other compilers, but since this
    affects only the quality of diagnostics, why bother?  */
-# if (4 < __GNUC__ || (__GNUC__ == 4 && 6 <= __GNUC_MINOR__)) && !defined __cplusplus
+# if (4 < __GNUC__ + (6 <= __GNUC_MINOR__) \
+      && (201112L <= __STDC_VERSION__  || !defined __STRICT_ANSI__) \
+      && !defined __cplusplus)
 #  define _GL_HAVE__STATIC_ASSERT 1
 # endif
 /* The condition (99 < __GNUC__) is temporary, until we know about the
index 93ee955d5d500131db0c5a1c1a38f738720f9efa..ecccd86b2664601a2ad1fead3fac44bf4f20f38f 100644 (file)
@@ -5153,7 +5153,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                 size_t tmp_length =
                                   MAX_ROOM_NEEDED (&a, dp->arg_index,
                                                    dp->conversion, type, flags,
-                                                   width, has_precision,
+                                                   has_width ? width : 0,
+                                                   has_precision,
                                                    precision, pad_ourselves);
 
                                 if (maxlen < tmp_length)
index d3fc1eff012491043153e1227299b9bb4f48ddf5..aae1701a0a440a78f269059a5e81c7d1cb01b127 100644 (file)
@@ -24,6 +24,9 @@ AC_DEFUN([gl_LOCK],
         [[
 #if __FreeBSD__ == 4
 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
+#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
+       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
+error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
 #else
 int x = (int)PTHREAD_MUTEX_RECURSIVE;
 return !x;