Messages in this thread | | | From | Irina Tirdea <> | Date | Sun, 2 Sep 2012 23:20:18 +0300 | Subject | Re: [PATCH 05/13] perf tools: fix ALIGN redefinition in system headers |
| |
> Simpler to undef ALIGN in util/include/linux/kernel.h right before the perf > version is declared.
This was actually my initial approach as well. The problem is that just to undef ALIGN before it is defined in perf is not enough. Somehow the bionic version overrides the perf definition even if I use undef. A solution would be to move the entire block of #undef and #define ALIGN at the beginning of util/include/linux/kernel.h, before the header's #ifndef PERF_LINUX_KERNEL_H_ define. I thought that renaming the ALIGN in perf is cleaner than having defines outside the include guards.
Irina
| |