summaryrefslogtreecommitdiff
path: root/preproc.h
diff options
context:
space:
mode:
authorFabian Giesen <fabiang@radgametools.com>2016-04-28 13:48:15 -0700
committerCyrill Gorcunov <gorcunov@gmail.com>2016-04-30 16:00:59 +0300
commit5b838ef981ba49349ac05656bff335ac5feaba15 (patch)
treef07cbb43f1d9e631e57b47c5b71bb1b9c2ec250a /preproc.h
parent0bbc38dbd576a1a626a31f55ce4c183b195641ef (diff)
downloadnasm-5b838ef981ba49349ac05656bff335ac5feaba15.tar.gz
codeview: Make md5sum calc read file in 'binary' mode
When assembling on Windows machines with CRLF line endings, computing the MD5 hash from the file read in "text" mode (transforms CRLF->LF) gives incorrect results. Signed-off-by: Fabian Giesen <fabiang@radgametools.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.h')
-rw-r--r--preproc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.h b/preproc.h
index 3dee45f2..3d1aa9c7 100644
--- a/preproc.h
+++ b/preproc.h
@@ -49,6 +49,6 @@ typedef const unsigned char macros_t;
enum preproc_token pp_token_hash(const char *token);
/* Opens an include file or input file. This uses the include path. */
-FILE *pp_input_fopen(const char *filename);
+FILE *pp_input_fopen(const char *filename, const char *mode);
#endif