]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:47:14 +0000 (03:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 14:33:17 +0000 (16:33 +0200)
* gettext-runtime/libasprintf/autosprintf.cc: Include <config.h>. This is
needed because of these new gnulib module dependencies:
  vasnprintf -> free-posix -> stdlib -> unistd,
and the generated unistd.h gets included indirectly by <string> on OpenBSD 6.7
and gives a #error "Please include config.h first."

gettext-runtime/libasprintf/autosprintf.cc

index 176b90cd98f9a056f7a59bc3fcdef9d6b33e0c75..429b8e83d8466e18dbfc0cb06618637696f0ae1c 100644 (file)
@@ -1,5 +1,5 @@
 /* Class autosprintf - formatted output to an ostream.
-   Copyright (C) 2002, 2013, 2015, 2018 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2013, 2015, 2018, 2021 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software: you can redistribute it and/or modify
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-/* Tell glibc's <stdio.h> to provide a prototype for vasprintf().
-   This must come before <config.h> because <config.h> may include
-   <features.h>, and once <features.h> has been included, it's too late.  */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE    1
-#endif
+#include <config.h>
 
 /* Specification.  */
 #include "autosprintf.h"