Skip to content

Commit ad64174

Browse files
author
Marcus Watts
committed
More c++ things
1 parent 204c39f commit ad64174

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

gc.h

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
#ifndef __GC_H__
3232
#define __GC_H__
3333

34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif
37+
3438
typedef struct gc_st gc_t;
3539

3640
typedef struct gc_global_st gc_global_t;
@@ -80,4 +84,8 @@ void _destroy_gc_subsystem(gc_global_t *);
8084
char *gc_get_tag(gc_global_t *, int alloc_id);
8185
int gc_get_blocksize(gc_global_t *, int alloc_id);
8286

87+
#ifdef __cplusplus
88+
}
89+
#endif
90+
8391
#endif /* __GC_H__ */

osi_mcas_obj_cache.h

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include "portable_defns.h"
66
#include "gc.h"
77

8+
#ifdef __cplusplus
9+
extern "C" {
10+
#endif
11+
812
typedef int osi_mcas_obj_cache_t;
913

1014
/* Create a new MCAS GC pool, and return its identifier, which
@@ -23,4 +27,8 @@ void osi_mcas_obj_cache_free(gc_global_t *, osi_mcas_obj_cache_t, void *);
2327
/* Terminate an MCAS GC pool */
2428
void osi_mcas_obj_cache_destroy(osi_mcas_obj_cache_t gc_id);
2529

30+
#ifdef __cplusplus
31+
}
32+
#endif
33+
2634
#endif /* __OSI_MCAS_OBJ_CACHE_H */

set_queue_adt.h

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4646
#define __SET_ADT_H__
4747

4848

49+
#ifdef __cplusplus
50+
extern "C" {
51+
#endif
52+
4953
typedef void *setkey_t;
5054
typedef void *setval_t;
5155

@@ -163,4 +167,8 @@ void osi_cas_skip_for_each(gc_global_t *, osi_set_t * l,
163167
osi_set_each_func each_func, void *arg);
164168

165169

170+
#ifdef __cplusplus
171+
}
172+
#endif
173+
166174
#endif /* __SET_ADT_H__ */

0 commit comments

Comments
 (0)