Sfoglia il codice sorgente

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

main
Mathias Kende 9 anni fa
parent
commit
9e6e8611e4
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      teensy3/wiring.h

+ 4
- 0
teensy3/wiring.h Vedi File

#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…
Annulla
Salva