18 lines
408 B
C
18 lines
408 B
C
#if defined(__GNUC__)
|
|
// Attributes to prevent 'unused' function from being removed and to make it visible
|
|
#define FUNCTION_ATTRIBUTE __attribute__((visibility("default"))) __attribute__((used))
|
|
#elif defined(_MSC_VER)
|
|
// Marking a function for export
|
|
#define FUNCTION_ATTRIBUTE __declspec(dllexport)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
char *request(char *body);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |