From 75f7c634c337f1912a3f24d646b7f6ece46b2ad6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Aug 2006 15:26:46 +0000 Subject: fixes from psm so we can pull in uClibc headers properly --- extra/locale/Makefile.in | 2 +- extra/locale/gen_wc8bit.c | 8 +++++++- extra/locale/gen_wctype.c | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) (limited to 'extra/locale') diff --git a/extra/locale/Makefile.in b/extra/locale/Makefile.in index 6c302077f..53d6b9f3b 100644 --- a/extra/locale/Makefile.in +++ b/extra/locale/Makefile.in @@ -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 diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c index cf72a180c..429421616 100644 --- a/extra/locale/gen_wc8bit.c +++ b/extra/locale/gen_wc8bit.c @@ -1,3 +1,9 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ +#define _GNU_SOURCE #include #include #include @@ -12,7 +18,7 @@ #ifndef _WCTYPE_H #define _WCTYPE_H #endif -#include +#include UCLIBC_CTYPE_HEADER /* #define CTYPE_PACKED */ diff --git a/extra/locale/gen_wctype.c b/extra/locale/gen_wctype.c index 5dfd41e48..c5279aadd 100644 --- a/extra/locale/gen_wctype.c +++ b/extra/locale/gen_wctype.c @@ -1,3 +1,9 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ +#define _GNU_SOURCE #include #include #include @@ -14,7 +20,7 @@ #ifndef _WCTYPE_H #define _WCTYPE_H #endif -#include +#include UCLIBC_CTYPE_HEADER /* 0x9 : space blank */ /* 0xa : space */ -- cgit v1.2.3