]> git.saurik.com Git - wxWidgets.git/commitdiff
Added compatibility fix for wxADJUST_MINSIZE
authorRobert Roebling <robert@roebling.de>
Fri, 11 Jun 2004 19:12:45 +0000 (19:12 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 11 Jun 2004 19:12:45 +0000 (19:12 +0000)
  Added defines for HANDHELDPC

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/platform.h

index d033683829ce4edeb7a7cd2cfb713e67cf306b56..74eb5b8e9153035198909e6ac08dcad8e264f1a8 100644 (file)
@@ -399,7 +399,9 @@ typedef int wxWindowID;
 /*  NULL declaration: it must be defined as 0 for C++ programs (in particular, */
 /*  it must not be defined as "(void *)0" which is standard for C but completely */
 /*  breaks C++ code) */
+#ifndef __HANDHELDPC__
 #include <stddef.h>
+#endif
 
 /*  delete pointer if it is not NULL and NULL it afterwards */
 /*  (checking that it's !NULL before passing it to delete is just a */
@@ -1030,7 +1032,11 @@ enum wxStretch
     wxTILE                    = 0xc000,
 
     // for compatibility only, default now, don't use explicitly any more
-    wxADJUST_MINSIZE          = 0x0000
+#if WXWIN_COMPATIBILITY_2_4    
+    wxADJUST_MINSIZE          = 0x00100000
+#else
+    wxADJUST_MINSIZE          = 0
+#endif
 };
 
 /*  border flags: the values are chosen for backwards compatibility */
index 14707f610498743747d0121fabd42687fc485c91..be0205c91bb0146a8d959cfb971dbe388e02cc1b 100644 (file)
 #    endif
 #endif
 
+#if defined(_WIN32_WCE) && !defined(WIN32_PLATFORM_WFSP) && !defined(WIN32_PLATFORM_PSPC)
+#   if (_WIN32_WCE >= 400)
+#       ifndef __WINCE_NET__
+#           define __WINCE_NET__
+#       endif
+#   elif (_WIN32_WCE >= 200) 
+#       ifndef __HANDHELDPC__
+#           define __HANDHELDPC__
+#       endif
+#   endif
+#endif
+
 /*
    Include wx/setup.h for the Unix platform defines generated by configure and
    the library compilation options