]> git.sur5r.net Git - cc65/blobdiff - src/cc65/expr.c
Added the io module
[cc65] / src / cc65 / expr.c
index 10d0007823fbef38742198435a7fcad11707189e..48c284eb222fb73a71363a8b19671872bacc614d 100644 (file)
@@ -10,6 +10,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "../common/xmalloc.h"
+
 #include "asmcode.h"
 #include "asmlabel.h"
 #include "check.h"
 #include "funcdesc.h"
 #include "function.h"
 #include "global.h"
-#include "io.h"
 #include "litpool.h"
 #include "macrotab.h"
-#include "mem.h"
 #include "preproc.h"
 #include "scanner.h"
 #include "stdfunc.h"
@@ -800,7 +800,7 @@ static int primary (struct expent* lval)
             * and returning int.
             */
            Warning (WARN_FUNC_WITHOUT_PROTO);
-           Sym = AddGlobalSym (Ident, GetImplicitFuncType(), SC_EXTERN | SC_REF);
+           Sym = AddGlobalSym (Ident, GetImplicitFuncType(), SC_EXTERN | SC_REF | SC_FUNC);
            lval->e_tptr  = Sym->Type;
            lval->e_flags = E_MGLOBAL | E_MCONST | E_TGLAB;
                    lval->e_name  = (unsigned long) Sym->Name;