瀏覽代碼

Allow the teensy3 library to be used with strict C++11 conformance.

main
Mathias Kende 9 年之前
父節點
當前提交
9e6e8611e4
共有 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); \

Loading…
取消
儲存