OSDN Git Service

Fix configure-with-nls vs. wchar.h/wcsdup problem differently.
authorJim Meyering <jim@meyering.net>
Wed, 30 May 2007 13:40:50 +0000 (15:40 +0200)
committerJim Meyering <jim@meyering.net>
Wed, 30 May 2007 13:40:50 +0000 (15:40 +0200)
* parted/table.c: Include <config.h> *before* all other #include
directives.  Remove explicit declaration of wcsdup.  Now, we'll
get the one from <wchar.h>.

parted/table.c

index c878f60..1301549 100644 (file)
 */
 
 
+#include <config.h>
 
 #include <stdio.h>
 #include <stdlib.h>
 
 #include <assert.h>
 
-#include <config.h>
 
 #ifdef ENABLE_NLS
 #       include <wchar.h>
         int wcswidth (const wchar_t *s, size_t n);
-        wchar_t *wcsdup(const wchar_t *s);
 #      define L_(str) L##str
 #else
 #      define L_(str) str