Better ANSI C compatibility and portability - part 1:
authorcarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:30:47 +0000 (00:30 +0800)
committercarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:54:23 +0000 (00:54 +0800)
* Adapt to new sys_filesize prototype.

lang/m2/comp/defmodule.c

index b778d7c..b8dd887 100644 (file)
@@ -17,6 +17,7 @@
 #include <em_arith.h>
 #include <em_label.h>
 #include <stdlib.h>
+#include <stdio.h>
 #include <string.h>
 
 #include "LLlex.h"
@@ -32,7 +33,7 @@
 #include "type.h"
 
 #ifdef DEBUG
-long sys_filesize();
+size_t sys_filesize();
 #endif
 
 t_idf* DefId;