diff options
Diffstat (limited to 'chre_api/include/chre_api/chre/toolchain.h')
-rw-r--r-- | chre_api/include/chre_api/chre/toolchain.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/chre_api/include/chre_api/chre/toolchain.h b/chre_api/include/chre_api/chre/toolchain.h index 1ed6a2a8..4dfc051f 100644 --- a/chre_api/include/chre_api/chre/toolchain.h +++ b/chre_api/include/chre_api/chre/toolchain.h @@ -23,7 +23,6 @@ */ #if defined(__GNUC__) || defined(__clang__) -// For GCC and clang #define CHRE_DEPRECATED(message) \ __attribute__((deprecated(message))) @@ -32,35 +31,10 @@ #define CHRE_PRINTF_ATTR(formatPos, argStart) \ __attribute__((format(printf, formatPos, argStart))) -#define CHRE_BUILD_ERROR(message) CHRE_DO_PRAGMA(GCC error message) -#define CHRE_DO_PRAGMA(message) _Pragma(#message) - -#elif defined(__ICCARM__) || defined(__CC_ARM) -// For IAR ARM and Keil MDK-ARM compilers - -#define CHRE_PRINTF_ATTR(formatPos, argStart) - -#elif defined(_MSC_VER) -// For Microsoft Visual Studio - -#define CHRE_PRINTF_ATTR(formatPos, argStart) - #else // if !defined(__GNUC__) && !defined(__clang__) #error Need to add support for new compiler #endif -// For platforms that don't support error pragmas, utilize the best method of -// showing an error depending on the platform support. -#ifndef CHRE_BUILD_ERROR -#ifdef __cplusplus // C++11 or greater assumed -#define CHRE_BUILD_ERROR(message) static_assert(0, message) -#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L -#define CHRE_BUILD_ERROR(message) _Static_assert(0, message) -#else -#define CHRE_BUILD_ERROR(message) char buildError[-1] = message -#endif -#endif - #endif // CHRE_TOOLCHAIN_H_ |