This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-cores
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Allow the teensy3 library to be used with strict C++11 conformance.
main
Mathias Kende
8 years ago
parent
0d394a6e76
commit
9e6e8611e4
1 changed files
with
4 additions
and
0 deletions
Split View
Show Diff Stats
+4
-0
teensy3/wiring.h
+ 4
- 0
teensy3/wiring.h
View File
@@ -60,6 +60,10 @@ extern "C"{
#undef abs
#endif
#if __cplusplus >= 201103L && defined(__STRICT_ANSI__)
#define typeof(a) decltype(a)
#endif
#define min(a, b) ({ \
typeof(a) _a = (a); \
typeof(b) _b = (b); \
Write
Preview
Loading…
Cancel
Save