]> git.sur5r.net Git - cc65/blobdiff - src/cc65/expr.c
Added the io module
[cc65] / src / cc65 / expr.c
index 470d690f85c4b337c23336c79acc293fa8b00418..48c284eb222fb73a71363a8b19671872bacc614d 100644 (file)
@@ -22,7 +22,6 @@
 #include "funcdesc.h"
 #include "function.h"
 #include "global.h"
-#include "io.h"
 #include "litpool.h"
 #include "macrotab.h"
 #include "preproc.h"
@@ -801,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;