Compatibility headers should always include the header in the same dir.
This commit is contained in:
Rot127 2024-10-22 08:22:16 +00:00 committed by GitHub
parent f97e2705da
commit cecb5ede74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
extern "C" {
#endif
#include <capstone/aarch64.h>
#include "aarch64.h"
#include "cs_operand.h"
#include "platform.h"

View File

@ -9,7 +9,7 @@
extern "C" {
#endif
#include <capstone/systemz.h>
#include "systemz.h"
#include "platform.h"
#include "cs_operand.h"

View File

@ -254,7 +254,7 @@ class CompatHeaderBuilder:
for line in v6_lines:
if re.search(r"^#include", line):
if not header_inserted:
output.append(f"#include <capstone/{self.v6_lower}.h>\n")
output.append(f'#include "{self.v6_lower}.h"\n')
header_inserted = True
output.append(line)
return output