Commit | Line | Data |
---|---|---|
e67d52d4 WN |
1 | /* |
2 | * Support C++ source use utilities defined in util.h | |
3 | */ | |
4 | ||
5 | #ifndef PERF_UTIL_UTIL_CXX_H | |
6 | #define PERF_UTIL_UTIL_CXX_H | |
7 | ||
8 | #ifdef __cplusplus | |
9 | extern "C" { | |
10 | #endif | |
11 | ||
12 | /* | |
13 | * Now 'new' is the only C++ keyword found in util.h: | |
14 | * in tools/include/linux/rbtree.h | |
15 | * | |
16 | * Other keywords, like class and delete, should be | |
17 | * redefined if necessary. | |
18 | */ | |
19 | #define new _new | |
20 | #include "util.h" | |
21 | #undef new | |
22 | ||
23 | #ifdef __cplusplus | |
24 | } | |
25 | #endif | |
26 | #endif |