diff options
Diffstat (limited to 'libgc/include/gc_local_alloc.h')
-rw-r--r-- | libgc/include/gc_local_alloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgc/include/gc_local_alloc.h b/libgc/include/gc_local_alloc.h index 16f51c1e128..fcbb942c9a2 100644 --- a/libgc/include/gc_local_alloc.h +++ b/libgc/include/gc_local_alloc.h @@ -49,6 +49,10 @@ #ifndef GC_LOCAL_ALLOC_H #define GC_LOCAL_ALLOC_H +#ifdef __cplusplus +extern "C" { +#endif + /* We assume ANSI C for this interface. */ GC_PTR GC_local_malloc(size_t bytes); @@ -62,6 +66,10 @@ GC_PTR GC_local_malloc_atomic(size_t bytes); void * ptr_to_struct_containing_descr); #endif +#ifdef __cplusplus +} // extern "C" +#endif + # ifdef GC_DEBUG /* We don't really use local allocation in this case. */ # define GC_LOCAL_MALLOC(s) GC_debug_malloc(s,GC_EXTRAS) |