Просмотр исходного кода

Merge pull request #125 from mkende/master

Allow the teensy3 library to be used with strict C++11 conformance.
main
Paul Stoffregen 9 лет назад
Родитель
Сommit
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); \

Загрузка…
Отмена
Сохранить