Avoid link errors on MacOS X 10.3 / PowerPC.
authorBruno Haible <bruno@clisp.org>
Mon, 26 Jan 2009 02:03:21 +0000 (03:03 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 26 Jan 2009 02:03:21 +0000 (03:03 +0100)
ChangeLog
lib/mbsrtowcs-state.c
lib/wcsrtombs-state.c

index f74e8988282fb2d327fdbf670b7201973496334b..42078cc17af2f6c97fed821c2d309b823907fc8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid link errors on MacOS X 10.3.
+       * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
+       * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
+
 2009-01-25  Bruno Haible  <bruno@clisp.org>
 
        * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
index 8216c790d7b126f38f4d6be5f3bc5274854d4c4c..3b4db21e0056b0940fa6aaf38e9ebb55b713ccb3 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert string to wide string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2009 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2008.
 
    This program is free software: you can redistribute it and/or modify
@@ -20,4 +20,4 @@
 #include <wchar.h>
 
 /* Internal state used by the functions mbsrtowcs() and mbsnrtowcs().  */
-mbstate_t _gl_mbsrtowcs_state;
+mbstate_t _gl_mbsrtowcs_state = 0;
index c06ad948105222b805587d86410cc85d04900ff4..cbdd250e10291fdc2cb0b5a55300ec75621a6162 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert wide string to string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2009 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2008.
 
    This program is free software: you can redistribute it and/or modify
@@ -20,4 +20,4 @@
 #include <wchar.h>
 
 /* Internal state used by the functions wcsrtombs() and wcsnrtombs().  */
-mbstate_t _gl_wcsrtombs_state;
+mbstate_t _gl_wcsrtombs_state = 0;