Browse Source

Added -std=c99 CFLAG in sparc-elf-gcc toolchain.

Ioannis Koutras 13 years ago
parent
commit
a716fcaf2e
2 changed files with 3 additions and 1 deletions
  1. 1 1
      private-include/linked_lists/linked_lists.h
  2. 2 0
      toolchain-sparc-elf.cmake

+ 1 - 1
private-include/linked_lists/linked_lists.h

@@ -31,7 +31,7 @@
 #include <stdint.h>
 #else
 #include <sys/types.h>
-#endif
+#endif /* LEON3 */
 
 /** The type of the pointer to a list node */
 #ifndef LEON3

+ 2 - 0
toolchain-sparc-elf.cmake

@@ -10,6 +10,8 @@ CMAKE_FORCE_CXX_COMPILER(sparc-elf-g++ GNU)
 set (CMAKE_C_FLAGS $ENV{CFLAGS}) 
 set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS $ENV{LDFLAGS})
 
+add_definitions(-std=c99)
+
 set (CMAKE_AR sparc-elf-ar)
 set (CMAKE_RANLIB sparc-elf-ranlib)