Skip to content

Commit 9ac98e3

Browse files
committed
A better way to check if C++11 is supported
See: arduino/Arduino#2175
1 parent b2dae57 commit 9ac98e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPPClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SPPClient : public SPPBase {
6161
*/
6262
SPPClient(BTD *p, const char *name = "Arduino", const char *pin = "0000", bool pair = false, uint8_t *addr = NULL);
6363

64-
#if GCC_VERSION > 40700 // Test for GCC > 4.7.0 - then C++11 should be supported
64+
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) // Check if C++11 is supported
6565
SPPClient(BTD *p, bool pair = false, uint8_t *addr = NULL) : SPPClient(p, "Arduino", "0000", pair, addr) {}; // Use a delegating constructor
6666
#endif
6767

0 commit comments

Comments
 (0)