Added errno.c
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Sep 2003 15:32:52 +0000 (15:32 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Sep 2003 15:32:52 +0000 (15:32 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2903 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/Makefile.in
device/lib/errno.c [new file with mode: 0644]
device/lib/libfloat.lib

index 54fd5c0530a6c271cab5247571e488579e6c0844..c7e81a73d07ad56bed3bbdf6f61330b93f24fb50 100644 (file)
@@ -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 (file)
index 0000000..8379ddf
--- /dev/null
@@ -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;
index 9b2a061ace0a113ad46eba5233d3a24cb5ee17f7..b4ff41f33119b0fa53b3c5d8fcab622f773a029b 100644 (file)
@@ -45,3 +45,4 @@ tanhf
 floorf
 ceilf
 modff
+errno