From 4fd8e991a714dcbbc1542dc77c59219777f2ed3b Mon Sep 17 00:00:00 2001
From: "Wesley W. Terpstra" <w.terpstra@gsi.de>
Date: Fri, 25 Oct 2013 16:29:13 +0200
Subject: [PATCH] move stdint.h and inttypes.h to another folder

These headers shadow system headers.
While they are necessary for building on the LM32, it breaks any
code that wants the other WR headers on a different architecture.

By moving these headers, we can pick whether to use them or not.
---
 Makefile                     | 2 +-
 include/{ => std}/inttypes.h | 0
 include/{ => std}/stdint.h   | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename include/{ => std}/inttypes.h (100%)
 rename include/{ => std}/stdint.h (100%)

diff --git a/Makefile b/Makefile
index 8997d5d..bb44785 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ obj-y += wrc_main.o
 	$(CC) -include $(AUTOCONF) -E -P $*.ld.S -o $@
 
 
-cflags-y =	-ffreestanding -include $(AUTOCONF) -Iinclude -I. -Isoftpll
+cflags-y =	-ffreestanding -include $(AUTOCONF) -Iinclude/std -Iinclude -I. -Isoftpll
 cflags-y +=	-I$(CURDIR)/pp_printf
 
 cflags-$(CONFIG_PTP_NOPOSIX) += \
diff --git a/include/inttypes.h b/include/std/inttypes.h
similarity index 100%
rename from include/inttypes.h
rename to include/std/inttypes.h
diff --git a/include/stdint.h b/include/std/stdint.h
similarity index 100%
rename from include/stdint.h
rename to include/std/stdint.h
-- 
GitLab