Skip to content

Commit

Permalink
Don't do automatic line ending conversions when generating amalgamate…
Browse files Browse the repository at this point in the history
…d files
  • Loading branch information
SanderMertens committed Aug 29, 2024
1 parent c835c54 commit 531ced7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/amalgamate/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void generate(
}

/* Create amalgamated header file */
FILE *include_out = fopen(include_file_tmp, "w");
FILE *include_out = fopen(include_file_tmp, "wb");
if (!include_out) {
ut_error("cannot open output file '%s'", include_file_out);
goto error;
Expand All @@ -384,7 +384,7 @@ void generate(
char *src_path = combine_path(project_path, "src");

/* Create amalgamated source file */
FILE *src_out = fopen(src_file_tmp, "w");
FILE *src_out = fopen(src_file_tmp, "wb");
if (!src_out) {
ut_error("cannot open output file '%s'", include_file_out);
goto error;
Expand Down Expand Up @@ -457,7 +457,7 @@ void generate(
char *file_path = combine_path(src_path, file);

if (!m_out) {
m_out = fopen(m_file_tmp, "w");
m_out = fopen(m_file_tmp, "wb");
if (!m_out) {
ut_error("cannot open output file '%s'", m_file_tmp);
goto error;
Expand Down

0 comments on commit 531ced7

Please sign in to comment.