Avoid macro redefinition conflicts by undefining symbols prior to definition
All checks were successful
Builds / XTchain (minimal, windows) (push) Successful in 2m12s
Builds / XTchain (minimal, linux) (push) Successful in 9m11s
Builds / XTchain (full, linux) (push) Successful in 1h0m9s
Builds / XTchain (full, windows) (push) Successful in 1h24m25s

This commit is contained in:
2026-04-02 08:07:20 +02:00
parent 94cef5522d
commit 4c1cf7d02c

View File

@@ -50,7 +50,8 @@ void ProcessSourceFile(FILE* InFile, FILE* OutFile)
}
/* Generate the corresponding C-preprocessor macro definition */
fprintf(OutFile, "#define %s %s\n", SymbolName, ValuePointer);
fprintf(OutFile, "#undef %s\n", SymbolName);
fprintf(OutFile, "#define %s %s\n\n", SymbolName, ValuePointer);
}
}
}