# HG changeset patch # User Rob Landley # Date 1328189199 21600 # Node ID 57e1335e59f6c03d6c444144f49f62066d612983 # Parent e9f6e7f25854b65d69bd99e63d9fd28c26da6ca7 Commit 415 needs the other two files. (Oops.) diff -r e9f6e7f25854 -r 57e1335e59f6 Config.in --- a/Config.in Mon Jan 30 07:40:32 2012 -0600 +++ b/Config.in Thu Feb 02 07:26:39 2012 -0600 @@ -19,6 +19,13 @@ 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 -r e9f6e7f25854 -r 57e1335e59f6 lib/lib.h --- a/lib/lib.h Mon Jan 30 07:40:32 2012 -0600 +++ b/lib/lib.h Thu Feb 02 07:26:39 2012 -0600 @@ -4,6 +4,14 @@ * Copyright 2006 Rob Landley */ +// 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);