Move CPP_PROLOGUE and CPP_EPILOGUE to the .cpp

This lets us avoid having to specify them in every C file.
This commit is contained in:
David Goldblatt
2017-04-17 15:22:14 -07:00
committed by David Goldblatt
parent a01f993077
commit 22366518b7
5 changed files with 8 additions and 21 deletions

View File

@@ -1,16 +1,6 @@
#ifndef JEMALLOC_PREAMBLE_H
#define JEMALLOC_PREAMBLE_H
#ifdef __cplusplus
# define CPP_PROLOGUE extern "C" {
# define CPP_EPILOGUE }
#else
# define CPP_PROLOGUE
# define CPP_EPILOGUE
#endif
CPP_PROLOGUE
#include "jemalloc_internal_defs.h"
#include "jemalloc/internal/jemalloc_internal_decls.h"
@@ -182,6 +172,4 @@ static const bool have_percpu_arena =
#endif
;
CPP_EPILOGUE
#endif /* JEMALLOC_PREAMBLE_H */