getopt.h.
* debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
strtof is not part of C89 and isn't included with Mac OS X.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3142
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-01-20 Michael Hope <michaelh@juju.net.nz>
+
+ * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
+ getopt.h.
+
+ * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
+ strtof is not part of C89 and isn't included with Mac OS X.
+
2004-01-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
* src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
}v;
if (IS_FLOAT(type))
- v.f = strtof(val,NULL);
+ v.f = strtod(val,NULL);
else
if (IS_PTR(type))
v.val = strtol(val,NULL,0);
#include <string.h>
#include <unistd.h>
#include <signal.h>
-#include <getopt.h> // FIXME
+
+#if defined(HAVE_GETOPT_H)
+# include <getopt.h>
+#endif
+
#include "fileio.hh"
#include "frontend.hh"
#include "posix_signal.hh"