mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 15:46:43 +07:00
27 lines
421 B
C
27 lines
421 B
C
|
/*
|
||
|
* 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
|