util-cxx.h 421 B

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