summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util-cxx.h
blob: 80a99e458d4e0e7fa7b5e6a2524f4c62f8ceee63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Support C++ source use utilities defined in util.h
 */

#ifndef PERF_UTIL_UTIL_CXX_H
#define PERF_UTIL_UTIL_CXX_H

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Now 'new' is the only C++ keyword found in util.h:
 * in tools/include/linux/rbtree.h
 *
 * Other keywords, like class and delete, should be
 * redefined if necessary.
 */
#define new _new
#include "util.h"
#undef new

#ifdef __cplusplus
}
#endif
#endif
OpenPOWER on IntegriCloud