Use __WINDOWS__ for OS kind checks and reserve __WXMSW__ for GUI toolkit.
This change prepares the way for using wxGTK under Windows as this would still define __WINDOWS__ but use __WXGTK__ instead of __WXMSW__. Closes #14064. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
class WXDLLIMPEXP_FWD_BASE wxDateTime;
|
||||
class WXDLLIMPEXP_FWD_BASE wxTimeSpan;
|
||||
class WXDLLIMPEXP_FWD_BASE wxDateSpan;
|
||||
#ifdef __WXMSW__
|
||||
#ifdef __WINDOWS__
|
||||
struct _SYSTEMTIME;
|
||||
#endif
|
||||
|
||||
@@ -606,7 +606,7 @@ public:
|
||||
wxDateTime_t minute = 0,
|
||||
wxDateTime_t second = 0,
|
||||
wxDateTime_t millisec = 0);
|
||||
#ifdef __WXMSW__
|
||||
#ifdef __WINDOWS__
|
||||
wxDateTime(const struct _SYSTEMTIME& st)
|
||||
{
|
||||
SetFromMSWSysTime(st);
|
||||
@@ -928,7 +928,7 @@ public:
|
||||
|
||||
// SYSTEMTIME format
|
||||
// ------------------------------------------------------------------------
|
||||
#ifdef __WXMSW__
|
||||
#ifdef __WINDOWS__
|
||||
// convert SYSTEMTIME to wxDateTime
|
||||
wxDateTime& SetFromMSWSysTime(const struct _SYSTEMTIME& st);
|
||||
|
||||
@@ -938,7 +938,7 @@ public:
|
||||
// same as above but only take date part into account, time is always zero
|
||||
wxDateTime& SetFromMSWSysDate(const struct _SYSTEMTIME& st);
|
||||
void GetAsMSWSysDate(struct _SYSTEMTIME* st) const;
|
||||
#endif // __WXMSW__
|
||||
#endif // __WINDOWS__
|
||||
|
||||
// comparison (see also functions below for operator versions)
|
||||
// ------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user