mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
A better way to check if C++11 is supported
See: https://github.com/arduino/Arduino/pull/2175
This commit is contained in:
parent
b2dae57d4d
commit
9ac98e39a4
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public:
|
|||
*/
|
||||
SPPClient(BTD *p, const char *name = "Arduino", const char *pin = "0000", bool pair = false, uint8_t *addr = NULL);
|
||||
|
||||
#if GCC_VERSION > 40700 // Test for GCC > 4.7.0 - then C++11 should be supported
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) // Check if C++11 is supported
|
||||
SPPClient(BTD *p, bool pair = false, uint8_t *addr = NULL) : SPPClient(p, "Arduino", "0000", pair, addr) {}; // Use a delegating constructor
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue