espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
771 stars 253 forks source link

compile c++ file including mlink_trigger.h #169

Open ClaesIvarsson opened 4 years ago

ClaesIvarsson commented 4 years ago

Environment

Problem Description

components/mlink/include/mlink_trigger.h included in c++ files will cause compiler error since it doesn't have matching declaration of extern "C" curly brackets.

#ifdef __cplusplus
extern "C" {
#endif

is missing in the beginning of the file but However:

#ifdef __cplusplus
}
#endif

is present in the end of the file

Expected Behavior

Actual Behavior

Steps to repropduce

  1. Include file in a cpp source file
  2. compile

Code to reproduce this issue

Debug Logs

Other items if possible

EspHuifeng commented 4 years ago

Thank you for your reminding, It will be fixed right now