summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-13 11:59:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-06 14:58:13 +0100
commitf59a2da89c3293dc5b1008f309aa055d6e9a3d9e (patch)
treef9e2dedf23e9b7fb61e49e5bcb4aebf45eb76d57
parentbe2e60c668bc2f26eecbe73728e8b0deb393a94f (diff)
downloadrtems-libbsd-f59a2da89c3293dc5b1008f309aa055d6e9a3d9e.tar.bz2
Use C11 and C++11
This is necessary to use <stdatomic.h> and <atomic>.
-rw-r--r--Makefile3
-rwxr-xr-xfreebsd-to-rtems.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5622849f..3004fa39 100644
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,9 @@ COMMON_FLAGS += -Wall
COMMON_FLAGS += -Wno-format
COMMON_FLAGS += -MT $@ -MD -MP -MF $(basename $@).d
CFLAGS += $(COMMON_FLAGS)
-CFLAGS += -std=gnu99
+CFLAGS += -std=gnu11
CXXFLAGS += $(COMMON_FLAGS)
+CXXFLAGS += -std=gnu++11
NEED_DUMMY_PIC_IRQ=yes
TEST_NETWORK_CONFIG = testsuite/include/rtems/bsd/test/network-config.h
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index c90c1d17..185599f4 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -439,8 +439,9 @@ class ModuleManager:
'COMMON_FLAGS += -Wno-format\n' \
'COMMON_FLAGS += -MT $@ -MD -MP -MF $(basename $@).d\n' \
'CFLAGS += $(COMMON_FLAGS)\n' \
- 'CFLAGS += -std=gnu99\n' \
+ 'CFLAGS += -std=gnu11\n' \
'CXXFLAGS += $(COMMON_FLAGS)\n' \
+ 'CXXFLAGS += -std=gnu++11\n' \
'NEED_DUMMY_PIC_IRQ=yes\n' \
'\n' \
'TEST_NETWORK_CONFIG = testsuite/include/rtems/bsd/test/network-config.h\n' \