/////////////////////////////////////////////////////////////////////////////
-// Name: utils.cpp
+// Name: src/msdos/utils.cpp
// Purpose: DOS implementations of utility functions
// Author: Vaclav Slavik, M.J.Wetherell
// Id: $Id$
#endif
#include "wx/utils.h"
-#include "wx/string.h"
-#include "wx/intl.h"
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+ #include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/app.h"
+#endif
+
#include "wx/apptrait.h"
-#include "wx/log.h"
#include "wx/process.h"
#include "wx/confbase.h" // for wxExpandEnvVars()
-#include "wx/app.h"
#include "wx/cmdline.h"
#include "wx/filename.h"
#include "wx/wfstream.h"
// wxGetenv is defined as getenv()
wxChar *p = wxGetenv(var);
if ( !p )
- return FALSE;
+ return false;
if ( value )
*value = p;
- return TRUE;
+ return true;
}
bool wxSetEnv(const wxString& variable, const wxChar *value)
bool wxGetHostName(wxChar *buf, int n)
{
const wxChar *host = wxGetenv(_T("ComputerName"));
-
+
if (!host)
host = wxGetenv(_T("HOSTNAME"));
#if wxUSE_STREAMS
// A wxFFileInputStream that deletes the file in it's destructor
-//
+//
class wxTempFileInStream : public wxFFileInputStream
{
public: