Mercurial > nand-ecoscentric
diff host/tools/configtool/standalone/wxwin/ecutils.cpp @ 496:6c2a59f5102f
* standalone/wxwin/ecutils.cpp: #include <errno.h>
* standalone/wxwin/filename.h: Make header macro unique
| author | jld |
|---|---|
| date | Thu, 16 Jan 2003 17:19:31 +0000 |
| parents | f62680ef1804 |
| children | 2b2d9aa25330 |
line wrap: on
line diff
--- a/host/tools/configtool/standalone/wxwin/ecutils.cpp +++ b/host/tools/configtool/standalone/wxwin/ecutils.cpp @@ -63,11 +63,8 @@ #include <sys/types.h> #include <sys/stat.h> -// Otherwise we get a strange link error under Linux #ifndef __WXMSW__ -#ifdef errno -#undef errno -#endif +#include <errno.h> #endif #ifdef __WXMSW__ @@ -191,7 +188,6 @@ int ecUtils::vMessageBox(UINT nType, LPC bool ecUtils::StrToItemIntegerType(const wxString & str, long &d) { - extern int errno; wxChar* pEnd; bool rc; errno=0; @@ -218,7 +214,6 @@ const wxString ecUtils::DoubleToStr (dou bool ecUtils::StrToDouble (const wxString & strValue, double &dValue) { - extern int errno; wxChar* pEnd; errno = 0; //dValue = _tcstod (strValue, &pEnd);
