OSDN Git Service

fixes from psm so we can pull in uClibc headers properly
authorMike Frysinger <vapier@gentoo.org>
Wed, 23 Aug 2006 15:26:46 +0000 (15:26 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 23 Aug 2006 15:26:46 +0000 (15:26 -0000)
extra/locale/Makefile.in
extra/locale/gen_wc8bit.c
extra/locale/gen_wctype.c

index 6c30207..53d6b9f 100644 (file)
@@ -10,7 +10,7 @@ WGET := wget --passive-ftp
 
 LOCALE_DATA_FILENAME := uClibc-locale-030818.tgz
 
-BUILD_CFLAGS-locale-common := -D__UCLIBC_GEN_LOCALE
+BUILD_CFLAGS-locale-common := -D__UCLIBC_GEN_LOCALE -DUCLIBC_CTYPE_HEADER='"$(top_srcdir)/include/bits/uClibc_ctype.h"'
 
 BUILD_CFLAGS-gen_wc8bit := $(BUILD_CFLAGS-locale-common) -DCTYPE_PACKED=1
 
index cf72a18..4294216 100644 (file)
@@ -1,3 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -12,7 +18,7 @@
 #ifndef _WCTYPE_H
 #define _WCTYPE_H
 #endif
-#include <bits/uClibc_ctype.h>
+#include UCLIBC_CTYPE_HEADER
 
 
 /*  #define CTYPE_PACKED */
index 5dfd41e..c5279aa 100644 (file)
@@ -1,3 +1,9 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -14,7 +20,7 @@
 #ifndef _WCTYPE_H
 #define _WCTYPE_H
 #endif
-#include <bits/uClibc_ctype.h>
+#include UCLIBC_CTYPE_HEADER
 
 /*       0x9 : space  blank */
 /*       0xa : space */