PalmOS compilation fixes (wx-trunk-out.diff part of patch 1894861)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,6 +115,8 @@ inline void wxBitmapButtonBase::SetLabel(const wxBitmap& bitmap)
|
|||||||
#include "wx/cocoa/bmpbuttn.h"
|
#include "wx/cocoa/bmpbuttn.h"
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
#include "wx/os2/bmpbuttn.h"
|
#include "wx/os2/bmpbuttn.h"
|
||||||
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include "wx/palmos/bmpbuttn.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // wxUSE_BMPBUTTON
|
#endif // wxUSE_BMPBUTTON
|
||||||
|
@@ -15,7 +15,9 @@
|
|||||||
#include "wx/chartype.h"
|
#include "wx/chartype.h"
|
||||||
#include "wx/wxcrtbase.h"
|
#include "wx/wxcrtbase.h"
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#include <stdlib.h> // malloc() and free()
|
#include <stdlib.h> // malloc() and free()
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_BASE wxCStrData;
|
class WXDLLIMPEXP_FWD_BASE wxCStrData;
|
||||||
|
|
||||||
|
@@ -84,6 +84,8 @@ private:
|
|||||||
#include "wx/cocoa/choice.h"
|
#include "wx/cocoa/choice.h"
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
#include "wx/os2/choice.h"
|
#include "wx/os2/choice.h"
|
||||||
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include "wx/palmos/choice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // wxUSE_CHOICE
|
#endif // wxUSE_CHOICE
|
||||||
|
@@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
#if wxUSE_DATETIME
|
#if wxUSE_DATETIME
|
||||||
|
|
||||||
#ifndef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
#include <time.h>
|
#include "wx/msw/wince/time.h"
|
||||||
#else
|
#elif !defined(__WXPALMOS5__)
|
||||||
#include "wx/msw/wince/time.h"
|
#include <time.h>
|
||||||
#endif
|
#endif // OS
|
||||||
|
|
||||||
#include <limits.h> // for INT_MIN
|
#include <limits.h> // for INT_MIN
|
||||||
|
|
||||||
|
@@ -14,9 +14,11 @@
|
|||||||
#ifndef _WX_DEBUG_H_
|
#ifndef _WX_DEBUG_H_
|
||||||
#define _WX_DEBUG_H_
|
#define _WX_DEBUG_H_
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
#include <limits.h> /* for CHAR_BIT used below */
|
#include <limits.h> /* for CHAR_BIT used below */
|
||||||
|
|
||||||
#include "wx/chartype.h" /* for __TFILE__ and wxChar */
|
#include "wx/chartype.h" /* for __TFILE__ and wxChar */
|
||||||
|
@@ -118,6 +118,7 @@ protected:
|
|||||||
defined(__WXX11__) || \
|
defined(__WXX11__) || \
|
||||||
defined(__WXMGL__) || \
|
defined(__WXMGL__) || \
|
||||||
defined(__WXCOCOA__) || \
|
defined(__WXCOCOA__) || \
|
||||||
|
defined(__WXPALMOS__) || \
|
||||||
defined(__WXPM__)
|
defined(__WXPM__)
|
||||||
#include "wx/generic/dirdlgg.h" // Other ports use generic implementation
|
#include "wx/generic/dirdlgg.h" // Other ports use generic implementation
|
||||||
#define wxDirDialog wxGenericDirDialog
|
#define wxDirDialog wxGenericDirDialog
|
||||||
|
@@ -29,7 +29,7 @@ enum
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define wxFC_DEFAULT_STYLE wxFC_OPEN
|
#define wxFC_DEFAULT_STYLE wxFC_OPEN
|
||||||
extern WXDLLEXPORT_DATA( const wxChar ) wxFileCtrlNameStr[];
|
extern WXDLLEXPORT_DATA( const wxChar ) wxFileCtrlNameStr[]; // in filectrlcmn.cpp
|
||||||
|
|
||||||
extern WXDLLIMPEXP_CORE const wxEventType wxEVT_FILECTRL_SELECTIONCHANGED;
|
extern WXDLLIMPEXP_CORE const wxEventType wxEVT_FILECTRL_SELECTIONCHANGED;
|
||||||
extern WXDLLIMPEXP_CORE const wxEventType wxEVT_FILECTRL_FILEACTIVATED;
|
extern WXDLLIMPEXP_CORE const wxEventType wxEVT_FILECTRL_FILEACTIVATED;
|
||||||
|
@@ -385,6 +385,43 @@ enum wxFileKind
|
|||||||
|
|
||||||
// it's a private define, undefine it so that nobody gets tempted to use it
|
// it's a private define, undefine it so that nobody gets tempted to use it
|
||||||
#undef wxHAS_HUGE_FILES
|
#undef wxHAS_HUGE_FILES
|
||||||
|
#elif defined (__WXPALMOS__)
|
||||||
|
typedef off_t wxFileOffset;
|
||||||
|
#ifdef _LARGE_FILES
|
||||||
|
#define wxFileOffsetFmtSpec wxLongLongFmtSpec
|
||||||
|
wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), BadFileSizeType );
|
||||||
|
// wxFile is present and supports large files
|
||||||
|
#ifdef wxUSE_FILE
|
||||||
|
#define wxHAS_LARGE_FILES
|
||||||
|
#endif
|
||||||
|
// wxFFile is present and supports large files
|
||||||
|
#if SIZEOF_LONG == 8 || defined HAVE_FSEEKO
|
||||||
|
#define wxHAS_LARGE_FFILES
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define wxFileOffsetFmtSpec _T("")
|
||||||
|
#endif
|
||||||
|
#define wxClose close
|
||||||
|
#define wxRead ::read
|
||||||
|
#define wxWrite ::write
|
||||||
|
#define wxLseek lseek
|
||||||
|
#define wxSeek lseek
|
||||||
|
#define wxFsync fsync
|
||||||
|
#define wxEof eof
|
||||||
|
|
||||||
|
#define wxCRT_MkDir mkdir
|
||||||
|
#define wxCRT_RmDir rmdir
|
||||||
|
|
||||||
|
#define wxTell(fd) lseek(fd, 0, SEEK_CUR)
|
||||||
|
|
||||||
|
#define wxStructStat struct stat
|
||||||
|
|
||||||
|
#define wxCRT_Open open
|
||||||
|
#define wxCRT_Stat svfs_stat
|
||||||
|
#define wxCRT_Lstat lstat
|
||||||
|
#define wxCRT_Access access
|
||||||
|
|
||||||
|
#define wxHAS_NATIVE_LSTAT
|
||||||
#else // Unix or Windows using unknown compiler, assume POSIX supported
|
#else // Unix or Windows using unknown compiler, assume POSIX supported
|
||||||
typedef off_t wxFileOffset;
|
typedef off_t wxFileOffset;
|
||||||
#ifdef _LARGE_FILES
|
#ifdef _LARGE_FILES
|
||||||
|
@@ -40,7 +40,7 @@ enum
|
|||||||
#define wxIMAGELIST_DRAW_SELECTED 0x0004
|
#define wxIMAGELIST_DRAW_SELECTED 0x0004
|
||||||
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
|
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPALMOS__)
|
||||||
#define wxHAS_NATIVE_IMAGELIST
|
#define wxHAS_NATIVE_IMAGELIST
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -50,6 +50,8 @@ enum
|
|||||||
#include "wx/msw/imaglist.h"
|
#include "wx/msw/imaglist.h"
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
#include "wx/mac/imaglist.h"
|
#include "wx/mac/imaglist.h"
|
||||||
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include "wx/palmos/imaglist.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _WX_IMAGLIST_H_BASE_
|
#endif // _WX_IMAGLIST_H_BASE_
|
||||||
|
@@ -55,9 +55,11 @@ typedef unsigned long wxLogLevel;
|
|||||||
|
|
||||||
#include "wx/arrstr.h"
|
#include "wx/arrstr.h"
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
#include <time.h> // for time_t
|
#include <time.h> // for time_t
|
||||||
#endif
|
#endif
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
#include "wx/dynarray.h"
|
#include "wx/dynarray.h"
|
||||||
|
|
||||||
|
@@ -25,7 +25,9 @@
|
|||||||
# undef __BSEXCPT__
|
# undef __BSEXCPT__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
#if wxUSE_WCHAR_T
|
#if wxUSE_WCHAR_T
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "wx/defs.h" // everybody should include this
|
#include "wx/defs.h" // everybody should include this
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#if defined(__WXMAC__) || defined(__VISAGECPP__)
|
#if defined(__WXMAC__) || defined(__VISAGECPP__)
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -46,10 +47,7 @@
|
|||||||
#ifdef HAVE_STRCASECMP_IN_STRINGS_H
|
#ifdef HAVE_STRCASECMP_IN_STRINGS_H
|
||||||
#include <strings.h> // for strcasecmp()
|
#include <strings.h> // for strcasecmp()
|
||||||
#endif // HAVE_STRCASECMP_IN_STRINGS_H
|
#endif // HAVE_STRCASECMP_IN_STRINGS_H
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
#ifdef __WXPALMOS__
|
|
||||||
#include <StringMgr.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/wxcrtbase.h" // for wxChar, wxStrlen() etc.
|
#include "wx/wxcrtbase.h" // for wxChar, wxStrlen() etc.
|
||||||
#include "wx/strvararg.h"
|
#include "wx/strvararg.h"
|
||||||
|
@@ -697,6 +697,8 @@ protected:
|
|||||||
#include "wx/cocoa/textctrl.h"
|
#include "wx/cocoa/textctrl.h"
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
#include "wx/os2/textctrl.h"
|
#include "wx/os2/textctrl.h"
|
||||||
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include "wx/palmos/textctrl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -594,8 +594,10 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name);
|
|||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define wxCRT_StrftimeA strftime
|
#define wxCRT_StrftimeA strftime
|
||||||
|
#ifndef __WXPALMOS__
|
||||||
/* FIXME-UTF8: when is this available? */
|
/* FIXME-UTF8: when is this available? */
|
||||||
#define wxCRT_StrftimeW wcsftime
|
#define wxCRT_StrftimeW wcsftime
|
||||||
|
#endif /* ! __WXPALMOS__ */
|
||||||
|
|
||||||
#ifndef wxCRT_StrftimeW
|
#ifndef wxCRT_StrftimeW
|
||||||
WXDLLIMPEXP_BASE size_t wxCRT_StrftimeW(wchar_t *s, size_t max,
|
WXDLLIMPEXP_BASE size_t wxCRT_StrftimeW(wchar_t *s, size_t max,
|
||||||
|
@@ -51,11 +51,13 @@
|
|||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#if !defined(__WXMSW__) || defined(__WXMICROWIN__)
|
#if !defined(__WXMSW__) || defined(__WXMICROWIN__)
|
||||||
#include <signal.h> // for SIGTRAP used by wxTrap()
|
#include <signal.h> // for SIGTRAP used by wxTrap()
|
||||||
#endif //Win/Unix
|
#endif //Win/Unix
|
||||||
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
#if wxUSE_FONTMAP
|
#if wxUSE_FONTMAP
|
||||||
#include "wx/fontmap.h"
|
#include "wx/fontmap.h"
|
||||||
|
@@ -80,6 +80,8 @@
|
|||||||
char* mktemp( char * path ) { return path ;}
|
char* mktemp( char * path ) { return path ;}
|
||||||
#include <stat.h>
|
#include <stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include "wx/palmos/missing.h"
|
||||||
#else
|
#else
|
||||||
#error "Please specify the header with file functions declarations."
|
#error "Please specify the header with file functions declarations."
|
||||||
#endif //Win/UNIX
|
#endif //Win/UNIX
|
||||||
|
@@ -51,11 +51,13 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#include "wx/msw/wince/time.h"
|
#include "wx/msw/wince/time.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* ! __WXPALMOS5__ */
|
||||||
|
|
||||||
#if defined(__WINDOWS__)
|
#if defined(__WINDOWS__)
|
||||||
#include "wx/msw/private.h" // includes windows.h
|
#include "wx/msw/private.h" // includes windows.h
|
||||||
|
@@ -58,12 +58,15 @@
|
|||||||
# undef HAVE_GETTIMEOFDAY
|
# undef HAVE_GETTIMEOFDAY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
#include "wx/msw/wince/time.h"
|
#include "wx/msw/wince/time.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif // __WXPALMOS5__
|
||||||
|
|
||||||
|
|
||||||
#if !defined(__WXMAC__) && !defined(__WXWINCE__)
|
#if !defined(__WXMAC__) && !defined(__WXWINCE__)
|
||||||
#include <sys/types.h> // for time_t
|
#include <sys/types.h> // for time_t
|
||||||
|
@@ -75,11 +75,13 @@
|
|||||||
#include "wx/statusbr.h"
|
#include "wx/statusbr.h"
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#include "wx/msw/wince/time.h"
|
#include "wx/msw/wince/time.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#include "wx/mac/private.h"
|
#include "wx/mac/private.h"
|
||||||
@@ -88,10 +90,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __WXPALMOS5__
|
||||||
#if !defined(__MWERKS__) && !defined(__WXWINCE__)
|
#if !defined(__MWERKS__) && !defined(__WXWINCE__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif // ! __WXPALMOS5__
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
Reference in New Issue
Block a user