Ver código fonte

Merge pull request #125 from mkende/master

Allow the teensy3 library to be used with strict C++11 conformance.
teensy4-core
Paul Stoffregen 9 anos atrás
pai
commit
a0cba29fed
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      teensy3/wiring.h

+ 4
- 0
teensy3/wiring.h Ver arquivo

#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); \

Carregando…
Cancelar
Salvar