Skip to content

Commit c97d343

Browse files
committed
wifi-headerfile-updates
1, add "extern "C" {} " to "wifi_ind.h" for being called by CPP files.
1 parent 1ac4d9b commit c97d343

File tree

1 file changed

+8
-0
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/api/wifi

1 file changed

+8
-0
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/api/wifi/wifi_ind.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
#include "wifi_conf.h"
3434

35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
3539
typedef void (*rtw_event_handler_t)(char *buf, int buf_len, int flags, void* handler_user_data );
3640

3741
typedef struct
@@ -90,6 +94,10 @@ extern void wifi_reg_event_handler(unsigned int event_cmds, rtw_event_handler_t
9094
*/
9195
extern void wifi_unreg_event_handler(unsigned int event_cmds, rtw_event_handler_t handler_func);
9296

97+
#ifdef __cplusplus
98+
}
99+
#endif
100+
93101
/*\@}*/
94102

95103
#endif //_WIFI_INDICATE_H

0 commit comments

Comments
 (0)