Revert "perf augmented_syscalls: Drop 'write', 'poll' for testing without self pid...
[linux/fpc-iii.git] / tools / perf / util / util-cxx.h
blob80a99e458d4e0e7fa7b5e6a2524f4c62f8ceee63
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Support C++ source use utilities defined in util.h
4 */
6 #ifndef PERF_UTIL_UTIL_CXX_H
7 #define PERF_UTIL_UTIL_CXX_H
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
14 * Now 'new' is the only C++ keyword found in util.h:
15 * in tools/include/linux/rbtree.h
17 * Other keywords, like class and delete, should be
18 * redefined if necessary.
20 #define new _new
21 #include "util.h"
22 #undef new
24 #ifdef __cplusplus
26 #endif
27 #endif