Committing in .
update OpenVMS compile support Modified Files: wxWindows/setup.h_vms wxWindows/include/wx/thread.h wxWindows/src/common/descrip.mms wxWindows/src/common/iffdecod.cpp wxWindows/src/unix/threadpsx.cpp ---------------------------------------------------------------------- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -289,7 +289,12 @@ public:
|
|||||||
// Get the platform specific thread ID and return as a long. This
|
// Get the platform specific thread ID and return as a long. This
|
||||||
// can be used to uniquely identify threads, even if they are not
|
// can be used to uniquely identify threads, even if they are not
|
||||||
// wxThreads. This is used by wxPython.
|
// wxThreads. This is used by wxPython.
|
||||||
static unsigned long GetCurrentId();
|
// On VMS thread pointers are 64 bits (also needed for other systems???
|
||||||
|
#ifdef __VMS
|
||||||
|
static unsigned long long GetCurrentId();
|
||||||
|
#else
|
||||||
|
static unsigned long GetCurrentId();
|
||||||
|
#endif
|
||||||
|
|
||||||
// sets the concurrency level: this is, roughly, the number of threads
|
// sets the concurrency level: this is, roughly, the number of threads
|
||||||
// the system tries to schedule to run in parallel. 0 means the
|
// the system tries to schedule to run in parallel. 0 means the
|
||||||
|
10
setup.h_vms
10
setup.h_vms
@@ -838,6 +838,11 @@
|
|||||||
*/
|
*/
|
||||||
#define wxUSE_PCX 1
|
#define wxUSE_PCX 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IFF image format support
|
||||||
|
*/
|
||||||
|
#define wxUSE_IFF 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PNM image format support
|
* PNM image format support
|
||||||
*/
|
*/
|
||||||
@@ -848,6 +853,11 @@
|
|||||||
*/
|
*/
|
||||||
#define wxUSE_XPM 1
|
#define wxUSE_XPM 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* MS Icons and Cursors format support
|
||||||
|
*/
|
||||||
|
#define wxUSE_ICO_CUR 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Disable this if your compiler can't cope
|
* Disable this if your compiler can't cope
|
||||||
* with omission of prototype parameters.
|
* with omission of prototype parameters.
|
||||||
|
@@ -85,10 +85,12 @@ OBJECTS1=fs_inet.obj,\
|
|||||||
hash.obj,\
|
hash.obj,\
|
||||||
helpbase.obj,\
|
helpbase.obj,\
|
||||||
http.obj,\
|
http.obj,\
|
||||||
|
iffdecod.obj,\
|
||||||
imagall.obj,\
|
imagall.obj,\
|
||||||
imagbmp.obj,\
|
imagbmp.obj,\
|
||||||
image.obj,\
|
image.obj,\
|
||||||
imaggif.obj,\
|
imaggif.obj,\
|
||||||
|
imagiff.obj,\
|
||||||
imagjpeg.obj,\
|
imagjpeg.obj,\
|
||||||
imagpcx.obj,\
|
imagpcx.obj,\
|
||||||
imagpng.obj,\
|
imagpng.obj,\
|
||||||
@@ -199,10 +201,12 @@ SOURCES = \
|
|||||||
hash.cpp,\
|
hash.cpp,\
|
||||||
helpbase.cpp,\
|
helpbase.cpp,\
|
||||||
http.cpp,\
|
http.cpp,\
|
||||||
|
iffdecod.cpp,\
|
||||||
imagall.cpp,\
|
imagall.cpp,\
|
||||||
imagbmp.cpp,\
|
imagbmp.cpp,\
|
||||||
image.cpp,\
|
image.cpp,\
|
||||||
imaggif.cpp,\
|
imaggif.cpp,\
|
||||||
|
imagiff.cpp,\
|
||||||
imagjpeg.cpp,\
|
imagjpeg.cpp,\
|
||||||
imagpcx.cpp,\
|
imagpcx.cpp,\
|
||||||
imagpng.cpp,\
|
imagpng.cpp,\
|
||||||
@@ -345,10 +349,12 @@ gifdecod.obj : gifdecod.cpp
|
|||||||
hash.obj : hash.cpp
|
hash.obj : hash.cpp
|
||||||
helpbase.obj : helpbase.cpp
|
helpbase.obj : helpbase.cpp
|
||||||
http.obj : http.cpp
|
http.obj : http.cpp
|
||||||
|
iffdecod.obj : iffdecod.cpp
|
||||||
imagall.obj : imagall.cpp
|
imagall.obj : imagall.cpp
|
||||||
imagbmp.obj : imagbmp.cpp
|
imagbmp.obj : imagbmp.cpp
|
||||||
image.obj : image.cpp
|
image.obj : image.cpp
|
||||||
imaggif.obj : imaggif.cpp
|
imaggif.obj : imaggif.cpp
|
||||||
|
imagiff.obj : imagiff.cpp
|
||||||
imagjpeg.obj : imagjpeg.cpp
|
imagjpeg.obj : imagjpeg.cpp
|
||||||
imagpcx.obj : imagpcx.cpp
|
imagpcx.obj : imagpcx.cpp
|
||||||
imagpng.obj : imagpng.cpp
|
imagpng.obj : imagpng.cpp
|
||||||
|
@@ -312,8 +312,15 @@ int wxIFFDecoder::ReadIFF()
|
|||||||
while (dataptr + 8 <= dataend) {
|
while (dataptr + 8 <= dataend) {
|
||||||
// get chunk length and make even
|
// get chunk length and make even
|
||||||
size_t chunkLen = (iff_getlong(dataptr + 4) + 1) & 0xfffffffe;
|
size_t chunkLen = (iff_getlong(dataptr + 4) + 1) & 0xfffffffe;
|
||||||
if (chunkLen < 0) { // format error?
|
#ifdef __VMS
|
||||||
break;
|
// Silence compiler warning
|
||||||
|
int chunkLen_;
|
||||||
|
chunkLen_ = chunkLen;
|
||||||
|
if (chunkLen_ < 0) { // format error?
|
||||||
|
#else
|
||||||
|
if (chunkLen < 0) { // format error?
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
bool truncated = (dataptr + 8 + chunkLen > dataend);
|
bool truncated = (dataptr + 8 + chunkLen > dataend);
|
||||||
|
|
||||||
|
@@ -928,9 +928,17 @@ int wxThread::GetCPUCount()
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __VMS
|
||||||
|
// VMS is a 64 bit system and threads have 64 bit pointers.
|
||||||
|
// ??? also needed for other systems????
|
||||||
|
unsigned long long wxThread::GetCurrentId()
|
||||||
|
{
|
||||||
|
return (unsigned long long)pthread_self();
|
||||||
|
#else
|
||||||
unsigned long wxThread::GetCurrentId()
|
unsigned long wxThread::GetCurrentId()
|
||||||
{
|
{
|
||||||
return (unsigned long)pthread_self();
|
return (unsigned long)pthread_self();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxThread::SetConcurrency(size_t level)
|
bool wxThread::SetConcurrency(size_t level)
|
||||||
|
Reference in New Issue
Block a user