浏览代码

Merge pull request #125 from mkende/master

Allow the teensy3 library to be used with strict C++11 conformance.
teensy4-core
Paul Stoffregen 9 年前
父节点
当前提交
a0cba29fed
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      teensy3/wiring.h

+ 4
- 0
teensy3/wiring.h 查看文件

#undef abs #undef abs
#endif #endif


#if __cplusplus >= 201103L && defined(__STRICT_ANSI__)
#define typeof(a) decltype(a)
#endif

#define min(a, b) ({ \ #define min(a, b) ({ \
typeof(a) _a = (a); \ typeof(a) _a = (a); \
typeof(b) _b = (b); \ typeof(b) _b = (b); \

正在加载...
取消
保存