-added Windows Embedded Compact 2013 support

This commit is contained in:
Günter Obiltschnig
2014-03-17 14:36:17 +01:00
parent cd607b6f28
commit b2ba1dfb74
221 changed files with 53154 additions and 13873 deletions

View File

@@ -40,7 +40,7 @@
#include "Poco/Exception.h"
#include <algorithm>
#include <ctime>
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
#include "wce_time.h"
#endif
@@ -283,7 +283,7 @@ void LocalDateTime::determineTzd(bool adjust)
{
std::time_t epochTime = _dateTime.timestamp().epochTime();
#if defined(_WIN32) || defined(POCO_NO_POSIX_TSF)
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
std::tm* broken = wceex_localtime(&epochTime);
#else
std::tm* broken = std::localtime(&epochTime);
@@ -324,7 +324,7 @@ std::time_t LocalDateTime::dstOffset(int& dstOffset) const
broken.tm_min = _dateTime.minute();
broken.tm_sec = _dateTime.second();
broken.tm_isdst = -1;
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
local = wceex_mktime(&broken);
#else
local = std::mktime(&broken);

View File

@@ -70,6 +70,12 @@ std::string PathImpl::nullImpl()
}
std::string PathImpl::tempImpl()
{
return "\\Temp\\";
}
std::string PathImpl::expandImpl(const std::string& path)
{
std::string result;

View File

@@ -69,7 +69,7 @@
#include "Poco/Random.h"
#include "Poco/RandomStream.h"
#include <ctime>
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
#include "wce_time.h"
#endif
@@ -175,7 +175,7 @@ Random::Random(int stateSize)
poco_assert (BREAK_0 <= stateSize && stateSize <= BREAK_4);
_pBuffer = new char[stateSize];
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
initState((UInt32) wceex_time(NULL), _pBuffer, stateSize);
#else
initState((UInt32) std::time(NULL), _pBuffer, stateSize);

View File

@@ -42,7 +42,7 @@
#include "Poco/ErrorHandler.h"
#include <sstream>
#include <ctime>
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
#include "wce_time.h"
#endif
@@ -89,7 +89,7 @@ PooledThread::PooledThread(const std::string& name, int stackSize):
{
poco_assert_dbg (stackSize >= 0);
_thread.setStackSize(stackSize);
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
_idleTime = wceex_time(NULL);
#else
_idleTime = std::time(NULL);
@@ -156,7 +156,7 @@ int PooledThread::idleTime()
{
FastMutex::ScopedLock lock(_mutex);
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
return (int) (wceex_time(NULL) - _idleTime);
#else
return (int) (time(NULL) - _idleTime);
@@ -232,7 +232,7 @@ void PooledThread::run()
}
FastMutex::ScopedLock lock(_mutex);
_pTarget = 0;
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
_idleTime = wceex_time(NULL);
#else
_idleTime = time(NULL);

View File

@@ -39,7 +39,11 @@
#include "Poco/Exception.h"
#include "Poco/UnWindows.h"
#include <ctime>
#if _WIN32_WCE >= 0x800
#include "time.h"
#else
#include "wce_time.h"
#endif
namespace Poco {
@@ -64,7 +68,11 @@ int Timezone::dst()
bool Timezone::isDst(const Timestamp& timestamp)
{
std::time_t time = timestamp.epochTime();
#if _WIN32_WCE >= 0x800
struct std::tm* tms = localtime(&time);
#else
struct std::tm* tms = wceex_localtime(&time);
#endif
if (!tms) throw SystemException("cannot get local time DST flag");
return tms->tm_isdst > 0;
}

View File

@@ -53,7 +53,8 @@
// disabled.)
// On Linux,x86 89255e-22 != Div_double(89255.0/1e22)
#if defined(_M_X64) || defined(__x86_64__) || \
defined(__ARMEL__) || defined(__avr32__) || \
defined(__ARMEL__) || defined(_M_ARM) || defined(__arm__) || \
defined(__avr32__) || \
defined(__hppa__) || defined(__ia64__) || \
defined(__mips__) || defined(__powerpc__) || \
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \

View File

@@ -3,7 +3,7 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
/* @(#) $Id: //poco/1.4/Foundation/src/zutil.c#3 $ */
#include "zutil.h"
#ifndef Z_SOLO
@@ -139,7 +139,7 @@ const char * ZEXPORT zError(err)
return ERR_MSG(err);
}
#if defined(_WIN32_WCE)
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
/* The Microsoft C Run-Time Library for Windows CE doesn't have
* errno. We define it as a global variable to simplify porting.
* Its value is always 0 and should not be used.

View File

@@ -8,7 +8,7 @@
subject to change. Applications should only use zlib.h.
*/
/* @(#) $Id$ */
/* @(#) $Id: //poco/1.4/Foundation/src/zutil.h#3 $ */
#ifndef ZUTIL_H
#define ZUTIL_H
@@ -150,7 +150,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#endif
#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
# if defined(_WIN32_WCE)
# if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
# define fdopen(fd,mode) NULL /* No fdopen() */
# ifndef _PTRDIFF_T_DEFINED
typedef int ptrdiff_t;