mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 15:16:49 +02:00
WinCE fixes
This commit is contained in:
@@ -577,6 +577,10 @@
|
||||
RelativePath=".\src\DeflatingStream.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FIFOBufferStream.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FileStream.cpp"
|
||||
>
|
||||
@@ -765,6 +769,10 @@
|
||||
RelativePath=".\include\Poco\DeflatingStream.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\FIFOBufferStream.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\FileStream.h"
|
||||
>
|
||||
@@ -2934,14 +2942,6 @@
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\src\pocomsg.rc"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Notifications"
|
||||
@@ -5273,6 +5273,10 @@
|
||||
RelativePath=".\src\Latin1Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Latin2Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Latin9Encoding.cpp"
|
||||
>
|
||||
@@ -5309,6 +5313,10 @@
|
||||
RelativePath=".\src\UTF16Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\UTF32Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\UTF8Encoding.cpp"
|
||||
>
|
||||
@@ -5317,6 +5325,14 @@
|
||||
RelativePath=".\src\UTF8String.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Windows1250Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Windows1251Encoding.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Windows1252Encoding.cpp"
|
||||
>
|
||||
@@ -5337,6 +5353,10 @@
|
||||
RelativePath=".\include\Poco\Latin1Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Latin2Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Latin9Encoding.h"
|
||||
>
|
||||
@@ -5373,6 +5393,10 @@
|
||||
RelativePath=".\include\Poco\UTF16Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\UTF32Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\UTF8Encoding.h"
|
||||
>
|
||||
@@ -5381,6 +5405,14 @@
|
||||
RelativePath=".\include\Poco\UTF8String.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Windows1250Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Windows1251Encoding.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Windows1252Encoding.h"
|
||||
>
|
||||
@@ -5905,14 +5937,6 @@
|
||||
RelativePath=".\src\Debugger.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicAny.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicAnyHolder.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Environment.cpp"
|
||||
>
|
||||
@@ -6489,6 +6513,10 @@
|
||||
RelativePath=".\include\Poco\Any.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Array.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\AtomicCounter.h"
|
||||
>
|
||||
@@ -6525,14 +6553,6 @@
|
||||
RelativePath=".\include\Poco\Debugger.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\DynamicAny.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\DynamicAnyHolder.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\DynamicFactory.h"
|
||||
>
|
||||
@@ -6637,6 +6657,10 @@
|
||||
RelativePath=".\include\Poco\NumericString.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\ObjectPool.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Platform.h"
|
||||
>
|
||||
@@ -6693,6 +6717,10 @@
|
||||
RelativePath=".\include\Poco\UnWindows.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\UTFString.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Version.h"
|
||||
>
|
||||
@@ -6703,42 +6731,42 @@
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Dynamic"
|
||||
>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\DLLVersion.rc"
|
||||
RelativePath=".\include\Poco\Dynamic\Pair.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="debug_static_mt|Digi JumpStart (ARMV4I)"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="release_static_mt|Digi JumpStart (ARMV4I)"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="debug_static_md|Digi JumpStart (ARMV4I)"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="release_static_md|Digi JumpStart (ARMV4I)"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Dynamic\Struct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Dynamic\Var.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\Poco\Dynamic\VarHolder.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\src\Var.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\VarHolder.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@@ -43,7 +43,6 @@
|
||||
// Define to enable Windows Unicode (UTF-8) support
|
||||
#define POCO_WIN32_UTF8
|
||||
|
||||
|
||||
// Define to enable C++11 support
|
||||
//#define POCO_ENABLE_CPP11
|
||||
|
||||
@@ -132,4 +131,10 @@
|
||||
// #define POCO_NET_NO_IPv6
|
||||
|
||||
|
||||
// Windows CE has no locale support
|
||||
#if defined(_WIN32_WCE)
|
||||
#define POCO_NO_LOCALE
|
||||
#endif
|
||||
|
||||
|
||||
#endif // Foundation_Config_INCLUDED
|
||||
|
@@ -50,7 +50,9 @@
|
||||
#endif
|
||||
#include <limits>
|
||||
#include <cmath>
|
||||
#if !defined(POCO_NO_LOCALE)
|
||||
#include <locale>
|
||||
#endif
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
@@ -421,9 +421,11 @@ typedef uLong FAR uLongf;
|
||||
|
||||
#ifdef STDC
|
||||
# ifndef Z_SOLO
|
||||
# ifndef _WIN32_WCE
|
||||
# include <sys/types.h> /* for off_t */
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <stddef.h> /* for wchar_t */
|
||||
|
@@ -32,8 +32,10 @@
|
||||
#endif
|
||||
|
||||
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
|
||||
# if !defined(_WIN32_WCE)
|
||||
# include <io.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef NO_DEFLATE /* for compatibility with old definition */
|
||||
# define NO_GZCOMPRESS
|
||||
|
@@ -421,9 +421,11 @@ typedef uLong FAR uLongf;
|
||||
|
||||
#ifdef STDC
|
||||
# ifndef Z_SOLO
|
||||
# ifndef _WIN32_WCE
|
||||
# include <sys/types.h> /* for off_t */
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <stddef.h> /* for wchar_t */
|
||||
|
@@ -590,6 +590,10 @@
|
||||
RelativePath=".\src\AnyTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\ArrayTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\AutoPtrTest.cpp"
|
||||
>
|
||||
@@ -610,10 +614,6 @@
|
||||
RelativePath=".\src\CoreTestSuite.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicAnyTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicFactoryTest.cpp"
|
||||
>
|
||||
@@ -649,6 +649,7 @@
|
||||
<File
|
||||
RelativePath=".\src\ObjectPoolTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\RegularExpressionTest.cpp"
|
||||
>
|
||||
@@ -681,6 +682,10 @@
|
||||
RelativePath=".\src\AnyTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\ArrayTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\AutoPtrTest.h"
|
||||
>
|
||||
@@ -701,10 +706,6 @@
|
||||
RelativePath=".\src\CoreTestSuite.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicAnyTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\DynamicFactoryTest.h"
|
||||
>
|
||||
@@ -785,6 +786,10 @@
|
||||
RelativePath=".\src\CountingStreamTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FIFOBufferStreamTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FileStreamTest.cpp"
|
||||
>
|
||||
@@ -841,6 +846,10 @@
|
||||
RelativePath=".\src\CountingStreamTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FIFOBufferStreamTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\FileStreamTest.h"
|
||||
>
|
||||
@@ -1835,6 +1844,34 @@
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Dynamic"
|
||||
>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\src\DynamicTestSuite.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\VarTest.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\src\DynamicTestSuite.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\VarTest.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@@ -42,7 +42,6 @@
|
||||
|
||||
using Poco::Path;
|
||||
using Poco::PathSyntaxException;
|
||||
using Poco::Random;
|
||||
using Poco::Environment;
|
||||
|
||||
|
||||
@@ -1458,7 +1457,7 @@ void PathTest::testAbsolute()
|
||||
|
||||
void PathTest::testRobustness()
|
||||
{
|
||||
Random r;
|
||||
Poco::Random r;
|
||||
for (int i = 0; i < 256; ++i)
|
||||
{
|
||||
int len = r.next(1024);
|
||||
|
@@ -38,7 +38,6 @@
|
||||
#include <cmath>
|
||||
|
||||
|
||||
using Poco::Random;
|
||||
using Poco::UInt32;
|
||||
|
||||
|
||||
@@ -54,8 +53,8 @@ RandomTest::~RandomTest()
|
||||
|
||||
void RandomTest::testSequence1()
|
||||
{
|
||||
Random rnd1;
|
||||
Random rnd2;
|
||||
Poco::Random rnd1;
|
||||
Poco::Random rnd2;
|
||||
rnd1.seed(12345);
|
||||
rnd2.seed(12345);
|
||||
for (int i = 0; i < 100; ++i)
|
||||
@@ -67,8 +66,8 @@ void RandomTest::testSequence1()
|
||||
|
||||
void RandomTest::testSequence2()
|
||||
{
|
||||
Random rnd1;
|
||||
Random rnd2;
|
||||
Poco::Random rnd1;
|
||||
Poco::Random rnd2;
|
||||
rnd1.seed(12345);
|
||||
rnd2.seed(54321);
|
||||
|
||||
@@ -87,7 +86,7 @@ void RandomTest::testSequence2()
|
||||
|
||||
void RandomTest::testDistribution1()
|
||||
{
|
||||
Random rnd;
|
||||
Poco::Random rnd;
|
||||
rnd.seed(123456);
|
||||
const int n = 11;
|
||||
int d[n] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
@@ -104,7 +103,7 @@ void RandomTest::testDistribution1()
|
||||
|
||||
void RandomTest::testDistribution2()
|
||||
{
|
||||
Random rnd;
|
||||
Poco::Random rnd;
|
||||
rnd.seed();
|
||||
const int n = 101;
|
||||
std::vector<int> d(n, 0);
|
||||
@@ -127,7 +126,7 @@ void RandomTest::testDistribution2()
|
||||
|
||||
void RandomTest::testDistribution3()
|
||||
{
|
||||
Random rnd;
|
||||
Poco::Random rnd;
|
||||
rnd.seed();
|
||||
const int n = 101;
|
||||
std::vector<int> d(n, 0);
|
||||
|
@@ -557,8 +557,8 @@ void TuplesTest::testTupleOrder()
|
||||
|
||||
void TuplesTest::testMemOverhead()
|
||||
{
|
||||
Tuple<short> small(0);
|
||||
int sz = sizeof(small);
|
||||
Tuple<short> smallOne(0);
|
||||
int sz = sizeof(smallOne);
|
||||
assert (sz == 4 || sz == 8); //depending on architecture and alignment
|
||||
Tuple<long> notSoSmall(0);
|
||||
sz = sizeof(notSoSmall);
|
||||
|
Reference in New Issue
Block a user