From: mrintsch Date: Sat, 15 Sep 2001 23:39:47 +0000 (+0000) Subject: included errno.h instead of declaring _oserrno as external X-Git-Tag: V2.12.0~2644 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=308785487fd0265deaef24d37e0d62c758d5ebd5;p=cc65 included errno.h instead of declaring _oserrno as external git-svn-id: svn://svn.cc65.org/cc65/trunk@940 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm/cbm_load.c b/libsrc/cbm/cbm_load.c index 283a4512d..cccc3279e 100644 --- a/libsrc/cbm/cbm_load.c +++ b/libsrc/cbm/cbm_load.c @@ -5,8 +5,7 @@ */ #include - -extern unsigned char _oserror; +#include /* loads file "name" from given device to given address or to the load address * of the file if addr is 0 diff --git a/libsrc/cbm/cbm_open.c b/libsrc/cbm/cbm_open.c index c63ac8ab8..242628ee1 100644 --- a/libsrc/cbm/cbm_open.c +++ b/libsrc/cbm/cbm_open.c @@ -6,8 +6,7 @@ */ #include - -extern unsigned char _oserror; +#include /* It's like BASIC's: OPEN lfn, device, sec_addr, "name" */ diff --git a/libsrc/cbm/cbm_read.c b/libsrc/cbm/cbm_read.c index 23be7315c..f0011284b 100644 --- a/libsrc/cbm/cbm_read.c +++ b/libsrc/cbm/cbm_read.c @@ -5,8 +5,7 @@ */ #include - -extern unsigned char _oserror; +#include int cbm_read(unsigned char lfn, void* buffer, unsigned int size) { diff --git a/libsrc/cbm/cbm_save.c b/libsrc/cbm/cbm_save.c index 381b747b8..211ce41e3 100644 --- a/libsrc/cbm/cbm_save.c +++ b/libsrc/cbm/cbm_save.c @@ -8,8 +8,7 @@ */ #include - -extern unsigned char _oserror; +#include /* saves a memory area from start to end-1 to a file. */ diff --git a/libsrc/cbm/cbm_write.c b/libsrc/cbm/cbm_write.c index b204b68ee..84433623f 100644 --- a/libsrc/cbm/cbm_write.c +++ b/libsrc/cbm/cbm_write.c @@ -5,8 +5,7 @@ */ #include - -extern unsigned char _oserror; +#include int cbm_write(unsigned char lfn, void* buffer, unsigned int size) { @@ -22,7 +21,7 @@ int cbm_write(unsigned char lfn, void* buffer, unsigned int size) { } if (cbm_k_readst()) { - _oserror = 5; /* device not present */ + _oserror = 5; /* device not present */ byteswritten = -1; }