]> git.saurik.com Git - wxWidgets.git/commitdiff
Committing in .
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Wed, 16 Jan 2002 15:07:55 +0000 (15:07 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Wed, 16 Jan 2002 15:07:55 +0000 (15:07 +0000)
 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

include/wx/thread.h
setup.h_vms
src/common/descrip.mms
src/common/iffdecod.cpp
src/unix/threadpsx.cpp

index ff86535a78629a524d206ea4f790d987d5849eea..72c708e51ffef4f5b3e693a5908ba13547fd0d46 100644 (file)
@@ -289,8 +289,13 @@ public:
         // Get the platform specific thread ID and return as a long.  This
         // can be used to uniquely identify threads, even if they are not
         // wxThreads.  This is used by wxPython.
         // Get the platform specific thread ID and return as a long.  This
         // can be used to uniquely identify threads, even if they are not
         // 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
         // the system tries to schedule to run in parallel. 0 means the
         // default value (usually acceptable, but may not yield the best
         // sets the concurrency level: this is, roughly, the number of threads
         // the system tries to schedule to run in parallel. 0 means the
         // default value (usually acceptable, but may not yield the best
index 17ef3a44aebf6d83dd195bbbc60241754312cd57..259a74575b9d3d97305afd8427d2612ec37398b7 100644 (file)
  */
 #define wxUSE_PCX 1
 
  */
 #define wxUSE_PCX 1
 
+/*
+ * IFF image format support
+ */
+#define wxUSE_IFF 1
+
 /*
  * PNM image format support
  */
 /*
  * PNM image format support
  */
  */
 #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
  * with omission of prototype parameters.
 /*
  * Disable this if your compiler can't cope
  * with omission of prototype parameters.
index 5222a3b78d69b6885c9064e20a72030a3cd8ede9..6483ecf8fd4bbaf3258fc1e26e971716fbec88a0 100644 (file)
@@ -85,10 +85,12 @@ OBJECTS1=fs_inet.obj,\
                hash.obj,\
                helpbase.obj,\
                http.obj,\
                hash.obj,\
                helpbase.obj,\
                http.obj,\
+               iffdecod.obj,\
                imagall.obj,\
                imagbmp.obj,\
                image.obj,\
                imaggif.obj,\
                imagall.obj,\
                imagbmp.obj,\
                image.obj,\
                imaggif.obj,\
+               imagiff.obj,\
                imagjpeg.obj,\
                imagpcx.obj,\
                imagpng.obj,\
                imagjpeg.obj,\
                imagpcx.obj,\
                imagpng.obj,\
@@ -199,10 +201,12 @@ SOURCES = \
                hash.cpp,\
                helpbase.cpp,\
                http.cpp,\
                hash.cpp,\
                helpbase.cpp,\
                http.cpp,\
+               iffdecod.cpp,\
                imagall.cpp,\
                imagbmp.cpp,\
                image.cpp,\
                imaggif.cpp,\
                imagall.cpp,\
                imagbmp.cpp,\
                image.cpp,\
                imaggif.cpp,\
+               imagiff.cpp,\
                imagjpeg.cpp,\
                imagpcx.cpp,\
                imagpng.cpp,\
                imagjpeg.cpp,\
                imagpcx.cpp,\
                imagpng.cpp,\
@@ -345,10 +349,12 @@ gifdecod.obj : gifdecod.cpp
 hash.obj : hash.cpp
 helpbase.obj : helpbase.cpp
 http.obj : http.cpp
 hash.obj : hash.cpp
 helpbase.obj : helpbase.cpp
 http.obj : http.cpp
+iffdecod.obj : iffdecod.cpp
 imagall.obj : imagall.cpp
 imagbmp.obj : imagbmp.cpp
 image.obj : image.cpp
 imaggif.obj : imaggif.cpp
 imagall.obj : imagall.cpp
 imagbmp.obj : imagbmp.cpp
 image.obj : image.cpp
 imaggif.obj : imaggif.cpp
+imagiff.obj : imagiff.cpp
 imagjpeg.obj : imagjpeg.cpp
 imagpcx.obj : imagpcx.cpp
 imagpng.obj : imagpng.cpp
 imagjpeg.obj : imagjpeg.cpp
 imagpcx.obj : imagpcx.cpp
 imagpng.obj : imagpng.cpp
index 423f182d10583732c942de73884952bae3ca3a2a..803d302f872c5061a85360d5ed2e13b7a5c73fff 100644 (file)
@@ -312,8 +312,15 @@ int wxIFFDecoder::ReadIFF()
     while (dataptr + 8 <= dataend) {
     // get chunk length and make even
     size_t chunkLen = (iff_getlong(dataptr + 4) + 1) & 0xfffffffe;
     while (dataptr + 8 <= dataend) {
     // get chunk length and make even
     size_t chunkLen = (iff_getlong(dataptr + 4) + 1) & 0xfffffffe;
-    if (chunkLen < 0) {     // format error?
-       break;
+#ifdef __VMS
+       // 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);
 
index 50278f17aecf9f14b99dfbe341be74801c13ae89..e10fe97e82d98353f1d127f6e71afc17424e06d8 100644 (file)
@@ -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()
 {
     return (unsigned long)pthread_self();
 unsigned long wxThread::GetCurrentId()
 {
     return (unsigned long)pthread_self();
+#endif
 }
 
 bool wxThread::SetConcurrency(size_t level)
 }
 
 bool wxThread::SetConcurrency(size_t level)