ref: 4bcfec78e66bb425cd8c8b865e7d8c950eecc069
parent: 947c83bf0340af6611b62a8b61e6b9d93fc658f8
author: ngkaho1234 <[email protected]>
date: Sun Oct 11 20:07:28 EDT 2015
1. Use cc/c++ instead of gcc/g++ 2. Detect ENODATA definition.
--- a/lwext4/ext4_errno.h
+++ b/lwext4/ext4_errno.h
@@ -80,6 +80,14 @@
#define ENOTSUP 95 /* Not supported */
#endif
+#ifndef ENODATA
+ #ifdef ENOATTR
+ #define ENODATA ENOATTR
+ #else
+ #define ENODATA 61
+ #endif
+#endif
+
#ifndef ENOTSUP
#define ENOTSUP 95
#endif
--- a/toolchain/generic.cmake
+++ b/toolchain/generic.cmake
@@ -2,8 +2,8 @@
set(CMAKE_SYSTEM_PROCESSOR generic)
# Toolchain settings
-set(CMAKE_C_COMPILER gcc)
-set(CMAKE_CXX_COMPILER g++)
+set(CMAKE_C_COMPILER cc)
+set(CMAKE_CXX_COMPILER c++)
set(AS as)
set(AR ar)
set(OBJCOPY objcopy)