Miscellaneous gcc fixes

This was SVN commit r541.
This commit is contained in:
Ykkrosh
2004-06-18 18:56:10 +00:00
parent 673c7d7318
commit 32b6627645
13 changed files with 38 additions and 13 deletions
+8 -2
View File
@@ -6,7 +6,13 @@
#include <sstream>
#include <fstream>
#include <iostream>
#include "float.h" // <- MT: Just for _finite(), converting certain strings was causing wierd bugs.
#ifdef _WIN32
# include "float.h" // <- MT: Just for _finite(), converting certain strings was causing wierd bugs.
# define finite _finite
#else
# define finite __finite // PT: Need to use _finite in MSVC, __finite in gcc
#endif
#pragma comment (lib, "js32.lib")
@@ -282,7 +288,7 @@ double ScriptingHost::ValueToDouble(const jsval value)
JSBool ok = JS_ValueToNumber(m_Context, value, &d);
if (ok == JS_FALSE || !_finite( d ) )
if (ok == JS_FALSE || !finite( d ) )
{
throw (std::string("Convert to double failed"));
}