diff options
Diffstat (limited to 'xen/tools/compat-build-header.py')
-rwxr-xr-x | xen/tools/compat-build-header.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/tools/compat-build-header.py b/xen/tools/compat-build-header.py index fba2f37861..e29606295e 100755 --- a/xen/tools/compat-build-header.py +++ b/xen/tools/compat-build-header.py @@ -4,6 +4,9 @@ import re,sys pats = [ [ r"__InClUdE__(.*)", r"#include\1\n#pragma pack(4)" ], + [ r"__IfDeF__ (XEN_HAVE.*)", r"#ifdef \1" ], + [ r"__ElSe__", r"#else" ], + [ r"__EnDif__", r"#endif" ], [ r"\"xen-compat.h\"", r"<public/xen-compat.h>" ], [ r"(struct|union|enum)\s+(xen_?)?(\w)", r"\1 compat_\3" ], [ r"@KeeP@", r"" ], |