summaryrefslogtreecommitdiff
path: root/libc/include
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2005-01-23 15:31:04 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:50 +0200
commit62c27c1c5cb6257b13dfc9be0394e0d2e86f2735 (patch)
treef702b7e5f80293367e1b6f9812bd45e80378be26 /libc/include
parent6cb598cc5f1c8ae6d14381c2776338584368257e (diff)
downloaddev86-62c27c1c5cb6257b13dfc9be0394e0d2e86f2735.tar.gz
Import Dev86src-0.16.17.tar.gzv0.16.17
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/stdarg.h1
-rw-r--r--libc/include/stdlib.h2
-rw-r--r--libc/include/sys/cdefs.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/libc/include/stdarg.h b/libc/include/stdarg.h
index f5f6fbf..c5fcfac 100644
--- a/libc/include/stdarg.h
+++ b/libc/include/stdarg.h
@@ -26,6 +26,7 @@
#ifndef __STDARG_H
#define __STDARG_H
+#include <features.h>
#ifdef sparc
# define _VA_ALIST_ "__builtin_va_alist"
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index aeb7a43..11699ca 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -24,10 +24,10 @@ extern unsigned long strtoul __P ((const char * nptr,
char ** endptr, int base));
#ifndef __HAS_NO_FLOATS__
extern double strtod __P ((const char * nptr, char ** endptr));
+extern double atof __P ((__const char *__nptr));
#endif
extern long int atol __P ((__const char *__nptr));
-extern double atof __P ((__const char *__nptr));
extern int atoi __P ((__const char *__nptr));
/* Returned by `div'. */
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h
index ce975f0..bf41935 100644
--- a/libc/include/sys/cdefs.h
+++ b/libc/include/sys/cdefs.h
@@ -10,7 +10,9 @@
/* This is not a typedef so `const __ptr_t' does the right thing. */
#define __ptr_t void *
+#ifndef __HAS_NO_FLOATS__
typedef long double __long_double_t;
+#endif
#else