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:
Vadim Zeitlin
2008-03-02 00:43:06 +00:00
parent a3c3a4cde5
commit 9b4da62701
19 changed files with 78 additions and 11 deletions

View File

@@ -115,6 +115,8 @@ inline void wxBitmapButtonBase::SetLabel(const wxBitmap& bitmap)
#include "wx/cocoa/bmpbuttn.h"
#elif defined(__WXPM__)
#include "wx/os2/bmpbuttn.h"
#elif defined(__WXPALMOS__)
#include "wx/palmos/bmpbuttn.h"
#endif
#endif // wxUSE_BMPBUTTON

View File

@@ -15,7 +15,9 @@
#include "wx/chartype.h"
#include "wx/wxcrtbase.h"
#ifndef __WXPALMOS5__
#include <stdlib.h> // malloc() and free()
#endif // ! __WXPALMOS5__
class WXDLLIMPEXP_FWD_BASE wxCStrData;

View File

@@ -84,6 +84,8 @@ private:
#include "wx/cocoa/choice.h"
#elif defined(__WXPM__)
#include "wx/os2/choice.h"
#elif defined(__WXPALMOS__)
#include "wx/palmos/choice.h"
#endif
#endif // wxUSE_CHOICE

View File

@@ -17,11 +17,11 @@
#if wxUSE_DATETIME
#ifndef __WXWINCE__
#include <time.h>
#else
#ifdef __WXWINCE__
#include "wx/msw/wince/time.h"
#endif
#elif !defined(__WXPALMOS5__)
#include <time.h>
#endif // OS
#include <limits.h> // for INT_MIN

View File

@@ -14,9 +14,11 @@
#ifndef _WX_DEBUG_H_
#define _WX_DEBUG_H_
#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <assert.h>
#endif
#endif // ! __WXPALMOS5__
#include <limits.h> /* for CHAR_BIT used below */
#include "wx/chartype.h" /* for __TFILE__ and wxChar */

View File

@@ -118,6 +118,7 @@ protected:
defined(__WXX11__) || \
defined(__WXMGL__) || \
defined(__WXCOCOA__) || \
defined(__WXPALMOS__) || \
defined(__WXPM__)
#include "wx/generic/dirdlgg.h" // Other ports use generic implementation
#define wxDirDialog wxGenericDirDialog

View File

@@ -29,7 +29,7 @@ enum
};
#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_FILEACTIVATED;

View File

@@ -385,6 +385,43 @@ enum wxFileKind
// it's a private define, undefine it so that nobody gets tempted to use it
#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
typedef off_t wxFileOffset;
#ifdef _LARGE_FILES

View File

@@ -40,7 +40,7 @@ enum
#define wxIMAGELIST_DRAW_SELECTED 0x0004
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
#if defined(__WXMSW__) || defined(__WXMAC__)
#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPALMOS__)
#define wxHAS_NATIVE_IMAGELIST
#endif
@@ -50,6 +50,8 @@ enum
#include "wx/msw/imaglist.h"
#elif defined(__WXMAC__)
#include "wx/mac/imaglist.h"
#elif defined(__WXPALMOS__)
#include "wx/palmos/imaglist.h"
#endif
#endif // _WX_IMAGLIST_H_BASE_

View File

@@ -55,9 +55,11 @@ typedef unsigned long wxLogLevel;
#include "wx/arrstr.h"
#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h> // for time_t
#endif
#endif // ! __WXPALMOS5__
#include "wx/dynarray.h"

View File

@@ -25,7 +25,9 @@
# undef __BSEXCPT__
#endif
#ifndef __WXPALMOS5__
#include <stdlib.h>
#endif // ! __WXPALMOS5__
#if wxUSE_WCHAR_T

View File

@@ -24,6 +24,7 @@
#include "wx/defs.h" // everybody should include this
#ifndef __WXPALMOS5__
#if defined(__WXMAC__) || defined(__VISAGECPP__)
#include <ctype.h>
#endif
@@ -46,10 +47,7 @@
#ifdef HAVE_STRCASECMP_IN_STRINGS_H
#include <strings.h> // for strcasecmp()
#endif // HAVE_STRCASECMP_IN_STRINGS_H
#ifdef __WXPALMOS__
#include <StringMgr.h>
#endif
#endif // ! __WXPALMOS5__
#include "wx/wxcrtbase.h" // for wxChar, wxStrlen() etc.
#include "wx/strvararg.h"

View File

@@ -697,6 +697,8 @@ protected:
#include "wx/cocoa/textctrl.h"
#elif defined(__WXPM__)
#include "wx/os2/textctrl.h"
#elif defined(__WXPALMOS__)
#include "wx/palmos/textctrl.h"
#endif
// ----------------------------------------------------------------------------

View File

@@ -594,8 +594,10 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name);
------------------------------------------------------------------------- */
#define wxCRT_StrftimeA strftime
#ifndef __WXPALMOS__
/* FIXME-UTF8: when is this available? */
#define wxCRT_StrftimeW wcsftime
#endif /* ! __WXPALMOS__ */
#ifndef wxCRT_StrftimeW
WXDLLIMPEXP_BASE size_t wxCRT_StrftimeW(wchar_t *s, size_t max,

View File

@@ -51,11 +51,13 @@
#include <typeinfo>
#endif
#ifndef __WXPALMOS5__
#if !defined(__WXMSW__) || defined(__WXMICROWIN__)
#include <signal.h> // for SIGTRAP used by wxTrap()
#endif //Win/Unix
#include <locale.h>
#endif // ! __WXPALMOS5__
#if wxUSE_FONTMAP
#include "wx/fontmap.h"

View File

@@ -80,6 +80,8 @@
char* mktemp( char * path ) { return path ;}
#include <stat.h>
#include <unistd.h>
#elif defined(__WXPALMOS__)
#include "wx/palmos/missing.h"
#else
#error "Please specify the header with file functions declarations."
#endif //Win/UNIX

View File

@@ -51,11 +51,13 @@
#include <stdlib.h>
#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/wince/time.h"
#endif
#endif /* ! __WXPALMOS5__ */
#if defined(__WINDOWS__)
#include "wx/msw/private.h" // includes windows.h

View File

@@ -58,12 +58,15 @@
# undef HAVE_GETTIMEOFDAY
#endif
#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/private.h"
#include "wx/msw/wince/time.h"
#endif
#endif // __WXPALMOS5__
#if !defined(__WXMAC__) && !defined(__WXWINCE__)
#include <sys/types.h> // for time_t

View File

@@ -75,11 +75,13 @@
#include "wx/statusbr.h"
#endif // wxUSE_GUI
#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/wince/time.h"
#endif
#endif // ! __WXPALMOS5__
#ifdef __WXMAC__
#include "wx/mac/private.h"
@@ -88,10 +90,12 @@
#endif
#endif
#ifndef __WXPALMOS5__
#if !defined(__MWERKS__) && !defined(__WXWINCE__)
#include <sys/types.h>
#include <sys/stat.h>
#endif
#endif // ! __WXPALMOS5__
#if defined(__WXMSW__)
#include "wx/msw/private.h"