@@ -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
@@ -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)