Just to elaborate on what what Let_Me_Be has said, the issue is you are not using the macro you have defined correctly.You are missing { and } braces.
Try this...
EXTERN_C {
void eap_radius_init (
const char *authsrv,
int port,
const char *secret,
PFN_RADIUS_CALLBACK radius_callback,
int hostapd_logger_level);
}
Also you need to modify the macro otherwise this will fail if EXTERN_C is not defined.
Try this...
#define EXTERN_C
#ifndef EXTERN_C
#ifdef __cplusplus
#undef EXTERN_C
#define EXTERN_C extern "C"
#endif
#endif
Main Topics
Browse All Topics





by: Let_Me_BePosted on 2009-09-12 at 11:37:23ID: 25317427
It works the other way. Its not for C -> C++ compatibility but for C++ -> C compatibility (and only for binary compatibility).
Anyways it works this way:
Select allOpen in new window