[CIFIX]add extern 'C' in C++ code

This commit is contained in:
liuwentan
2022-08-11 10:50:41 +08:00
parent 14703ec4b4
commit 85c28ff17e
12 changed files with 145 additions and 24 deletions

View File

@@ -8,6 +8,13 @@
***********************************************************************************************
*/
#pragma once
#ifdef __cpluscplus
extern "C"
{
#endif
#define CASE_CODE(E) case E: return #E
/* ST is short for stellar */
@@ -35,4 +42,8 @@ typedef enum {
ST_ERR_FOPEN,
ST_ERR_BPF,
ST_ERR_MAX
} error_code_t;
} error_code_t;
#ifdef __cpluscplus
}
#endif