aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/innosetup.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/innosetup.in')
-rw-r--r--src/build-data/innosetup.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/build-data/innosetup.in b/src/build-data/innosetup.in
index fa3a5e656..368d74824 100644
--- a/src/build-data/innosetup.in
+++ b/src/build-data/innosetup.in
@@ -49,10 +49,13 @@ procedure ConvertLineEndings();
LF : String;
CRLF : String;
begin
- LF := #10;
- CR := #13;
- CRLF := CR + LF;
- LoadStringFromFile(ExpandConstant(CurrentFileName), FileContents);
- StringChangeEx(FileContents, LF, CRLF, False);
- SaveStringToFile(ExpandConstant(CurrentFileName), FileContents, False);
+ if ExtractFileName(CurrentFileName) <> 'build.h' then
+ begin
+ LF := #10;
+ CR := #13;
+ CRLF := CR + LF;
+ LoadStringFromFile(ExpandConstant(CurrentFileName), FileContents);
+ StringChangeEx(FileContents, LF, CRLF, False);
+ SaveStringToFile(ExpandConstant(CurrentFileName), FileContents, False);
+ end;
end;