Browse Source

1. Use cc/c++ instead of gcc/g++

2. Detect ENODATA definition.
pull/11/head
ngkaho1234 9 years ago
parent
commit
4bcfec78e6
  1. 8
      lwext4/ext4_errno.h
  2. 4
      toolchain/generic.cmake

8
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

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

Loading…
Cancel
Save