From: jesusc Date: Sun, 21 Sep 2003 15:32:52 +0000 (+0000) Subject: Added errno.c X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=60be79b8345ea79c08d15e96329c65f1e548bf68;p=fw%2Fsdcc Added errno.c git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2903 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 54fd5c05..c7e81a73 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -65,7 +65,7 @@ SOURCES = _atof.c _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \ fabsf.c frexpf.c ldexpf.c expf.c powf.c sincosf.c sinf.c \ cosf.c logf.c log10f.c sqrtf.c tancotf.c tanf.c cotf.c \ asincosf.c asinf.c acosf.c atanf.c atan2f.c sincoshf.c \ - sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c + sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c errno.c OBJECTS = $(patsubst %.c,$(PORTDIR)/%.rel,$(SOURCES)) @@ -115,7 +115,7 @@ XA51SOURCES = _atof.c _atoi.c _atol.c _schar2fs.c \ fabsf.c frexpf.c ldexpf.c expf.c powf.c sincosf.c sinf.c \ cosf.c logf.c log10f.c sqrtf.c tancotf.c tanf.c cotf.c \ asincosf.c asinf.c acosf.c atanf.c atan2f.c sincoshf.c \ - sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c + sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c errno.c XA51OBJECTS = $(XA51SOURCES:%.c=$(PORTDIR)/%.rel) diff --git a/device/lib/errno.c b/device/lib/errno.c new file mode 100644 index 00000000..8379ddf4 --- /dev/null +++ b/device/lib/errno.c @@ -0,0 +1,21 @@ +/*------------------------------------------------------------------------- + + errno.c :- just declares errno as a variable + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this program; if not, write to the Free Software + Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +-------------------------------------------------------------------------*/ + +int errno; diff --git a/device/lib/libfloat.lib b/device/lib/libfloat.lib index 9b2a061a..b4ff41f3 100644 --- a/device/lib/libfloat.lib +++ b/device/lib/libfloat.lib @@ -45,3 +45,4 @@ tanhf floorf ceilf modff +errno