// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "automtn.h"
#endif
#define _FORCENAMELESSUNION
#include "wx/log.h"
+#include "wx/msw/private.h"
#include "wx/msw/ole/oleutils.h"
#include "wx/msw/ole/automtn.h"
-#include "wx/msw/private.h"
#include <math.h>
+
+#ifdef __WXWINCE__
+#include "wx/msw/wince/time.h"
+#else
#include <time.h>
+#endif
#include <wtypes.h>
#include <unknwn.h>
+
#include <ole2.h>
#define _huge
+
+#ifndef __WXWINCE__
#include <ole2ver.h>
+#endif
+
#include <oleauto.h>
// Verifies will fail if the needed buffer size is too large
if (dtSrc > MAX_DATE || dtSrc < MIN_DATE) // about year 100 to about 9999
return FALSE;
- long nDays; // Number of days since Dec. 30, 1899
long nDaysAbsolute; // Number of days since 1/1/0
long nSecsInDay; // Time in seconds since midnight
long nMinutesInDay; // Minutes in day
double dblDate = dtSrc; // tempory serial date
- // If a valid date, then this conversion should not overflow
- nDays = (long)dblDate;
-
// Round to the second
dblDate += ((dtSrc > 0.0) ? HALF_SECOND : -HALF_SECOND);