mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-29 22:48:05 +03:00
Move `extern "C" specifications for C++ to where they are needed
This should fix errors when compiling C++ code with modules enabled on clang.
This commit is contained in:
parent
3688dfb5c3
commit
80e9001af3
3 changed files with 16 additions and 6 deletions
|
|
@ -6,9 +6,6 @@ cat <<EOF
|
|||
#ifndef JEMALLOC_H_
|
||||
#define JEMALLOC_H_
|
||||
#pragma GCC system_header
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
EOF
|
||||
|
||||
|
|
@ -21,8 +18,5 @@ for hdr in jemalloc_defs.h jemalloc_rename.h jemalloc_macros.h \
|
|||
done
|
||||
|
||||
cat <<EOF
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* JEMALLOC_H_ */
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue