File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,10 @@ set(TEST_TARGET_ADVERTISING_DATA_SRCS
98
98
99
99
##########################################################################
100
100
101
- set (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage" )
102
- set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage" )
101
+ #set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-fpermissive")
102
+ set (CMAKE_C_FLAGS "-fpermissive" )
103
+ #set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-fpermissive -std=gnu++11")
104
+ set (CMAKE_CXX_FLAGS "-fpermissive -std=gnu++11" )
103
105
104
106
##########################################################################
105
107
Original file line number Diff line number Diff line change 38
38
typedef arduino::String String;
39
39
typedef bool boolean;
40
40
41
+ #if defined(__cplusplus)
42
+
43
+ #undef F
44
+ // C++11 F replacement declaration
45
+ template <typename T1>
46
+ auto F (T1&& A)
47
+ -> const arduino::__FlashStringHelper*
48
+ {
49
+ return (const arduino::__FlashStringHelper*)A;
50
+ }
51
+
52
+ #endif
53
+
41
54
/* *****************************************************************************
42
55
FUNCTION PROTOTYPES
43
56
******************************************************************************/
You can’t perform that action at this time.
0 commit comments