summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 13:07:38 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-20 13:07:38 -0400
commitfa2ba2e3c3b3a684b7db51cc47c8c7e1d5934880 (patch)
treed151ca27d6726a04fa27cf8e2990c14d43edd8de /Makefile.in
parent5590ebbd363cad03d3d22558a6bc067b9519a318 (diff)
add a wchar.h stub
The basic C standard requires a few wchar types, so provide those even when wchar support is disabled. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index f7fd5bef7..a834a1d94 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -283,6 +283,11 @@ install_headers: headers $(top_builddir)extra/scripts/unifdef
echo '/* Dont use _syscall#() macros; use the syscall() function */' > \
$(PREFIX)$(DEVEL_PREFIX)include/bits/syscalls.h
cd $(PREFIX)$(DEVEL_PREFIX)include && $(RM) -r $(HEADERS_RM-)
+ifeq ($(UCLIBC_HAS_WCHAR),)
+ cd $(PREFIX)$(DEVEL_PREFIX)include && mv -f wchar-stub.h wchar.h
+else
+ cd $(PREFIX)$(DEVEL_PREFIX)include && $(RM) -f wchar-stub.h
+endif
# Installs development library links.
install_dev: install_headers all