File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424#include <time.h>
2525#include <sys/mman.h>
2626
27- #define ACO_VERSION_MAJOR 1
28- #define ACO_VERSION_MINOR 2
29- #define ACO_VERSION_PATCH 2
30-
3127#ifdef ACO_USE_VALGRIND
3228 #include <valgrind/valgrind.h>
3329#endif
3430
31+ #ifdef __cplusplus
32+ extern "C" {
33+ #endif
34+
35+ #define ACO_VERSION_MAJOR 1
36+ #define ACO_VERSION_MINOR 2
37+ #define ACO_VERSION_PATCH 2
38+
3539#ifdef __i386__
3640 #define ACO_REG_IDX_RETADDR 0
3741 #define ACO_REG_IDX_SP 1
@@ -196,4 +200,8 @@ extern void aco_destroy(aco_t* co);
196200 aco_exit1(aco_gtls_co); \
197201} while(0)
198202
203+ #ifdef __cplusplus
204+ }
205+ #endif
206+
199207#endif
Original file line number Diff line number Diff line change 1717
1818#include "aco.h"
1919
20+ #ifdef __cplusplus
21+ extern "C" {
22+ #endif
23+
2024#define likely (x ) aco_likely(x)
2125#define unlikely (x ) aco_unlikely(x)
2226#define assert (EX ) aco_assert(EX)
2327#define assertptr (ptr ) aco_assertptr(ptr)
2428#define assertalloc_bool (b ) aco_assertalloc_bool(b)
2529#define assertalloc_ptr (ptr ) aco_assertalloc_ptr(ptr)
2630
31+ #ifdef __cplusplus
32+ }
33+ #endif
34+
2735#endif
You can’t perform that action at this time.
0 commit comments