aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-02 07:26:39 -0600
committerRob Landley <rob@landley.net>2012-02-02 07:26:39 -0600
commitf01503d18a35c71706edf8b1801af55cfcb19733 (patch)
tree300c2ee4ed1ae5f969c2bd2f8a0731af8a227e15
parent801c3d52adaf2c976b075c63bc2f0ae79dcfbe3c (diff)
downloadtoybox-f01503d18a35c71706edf8b1801af55cfcb19733.tar.gz
Commit 415 needs the other two files. (Oops.)
-rw-r--r--Config.in7
-rw-r--r--lib/lib.h8
2 files changed, 15 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index ad8a2426..fffd2870 100644
--- a/Config.in
+++ b/Config.in
@@ -19,6 +19,13 @@ config TOYBOX_SUID
be installed suid root, and drops permissions before running commands
which do not require root access.
+config TOYBOX_FLOAT
+ bool "Floating point support"
+ default y
+ help
+ Include floating point support infrastructure and commands that
+ require it.
+
config TOYBOX_FREE
bool "Free memory unnecessarily"
default n
diff --git a/lib/lib.h b/lib/lib.h
index 61df58b4..6880462e 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -4,6 +4,14 @@
* Copyright 2006 Rob Landley <rob@landley.net>
*/
+// Unfortunately, sizeof() doesn't work in a preprocessor test. TODO.
+
+//#if sizeof(double) <= sizeof(long)
+//typedef double FLOAT;
+//#else
+typedef float FLOAT;
+//#endif
+
// libc generally has this, but the headers are screwed up
ssize_t getline(char **lineptr, size_t *n, FILE *stream);