last fixes to fixes (MSW compilation works now)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-29 21:18:49 +00:00
parent e87b7b6000
commit c30aaf75f0
4 changed files with 323 additions and 327 deletions

View File

@@ -39,6 +39,7 @@ enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN};
class WXDLLEXPORT wxDate : public wxObject class WXDLLEXPORT wxDate : public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxDate) DECLARE_DYNAMIC_CLASS(wxDate)
protected: protected:
unsigned long julian; // see julDate(); days since 1/1/4713 B.C. unsigned long julian; // see julDate(); days since 1/1/4713 B.C.
int month; // see NMonth() int month; // see NMonth()
@@ -138,6 +139,6 @@ class WXDLLEXPORT wxDate: public wxObject
wxDate Previous(int dayOfWeek) const; wxDate Previous(int dayOfWeek) const;
}; };
#endif #endif // wxUSE_TIMEDATE
#endif #endif
// _WX_DATE_H_ // _WX_DATE_H_

View File

@@ -16,8 +16,9 @@
#pragma interface "log.h" #pragma interface "log.h"
#endif #endif
#include <wx/dynarray.h> #include <time.h> // for time_t
#include <time.h>
#include "wx/dynarray.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants

View File

@@ -129,7 +129,7 @@ void wxDate::operator = (const wxDate &dt)
month = dt.month; month = dt.month;
day = dt.day; day = dt.day;
year = dt.year; year = dt.year;
mdy_to_julian (); mdy_to_julian (); // wxUSE_TIMEDATE
} }
void wxDate::operator = (const wxString& dat) void wxDate::operator = (const wxString& dat)

View File

@@ -274,12 +274,6 @@ bool wxFileExists(const char *pszFileName)
} }
*/ */
bool wxDirExists( const wxString& dir )
{
struct stat st;
return ((stat(dir, &st) != -1) && S_ISDIR(st.st_mode) ? TRUE : FALSE);
}
bool bool
wxIsAbsolutePath (const wxString& filename) wxIsAbsolutePath (const wxString& filename)
{ {