chartype *m_str; \
}
+#ifndef strdup
+inline char *strdup(const char *cs)
+{
+ size_t len = 0;
+ while (cs[len] != 0)
+ len++;
+ const size_t siz = (len + 1)*sizeof(char);
+ char *csCopy = (char *)malloc(siz);
+ memcpy(csCopy, cs, siz);
+ return csCopy;
+}
+#endif
+
DEFINE_BUFFER(wxCharBuffer, char, strdup);
#if wxUSE_WCHAR_T
#ifndef _WX_DEBUG_H_
#define _WX_DEBUG_H_
+#ifndef __WXWINCE__
#include <assert.h>
+#endif
#include <limits.h> // for CHAR_BIT used below
#include "wx/wxchar.h" // for __TFILE__ and wxChar
// compiler defects workarounds
// ----------------------------------------------------------------------------
-#if defined(__VISUALC__) && !defined(WIN32)
+#if defined(__VISUALC__) && !defined(WIN32) && !defined(__WXWINCE__)
// VC1.5 does not have LPTSTR type
#define LPTSTR LPSTR
#define LPCTSTR LPCSTR
#include "wx/list.h"
+#ifndef __WXWINCE__
#include <time.h>
+#endif
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
+#ifdef __WXWINCE__
+ typedef long off_t;
+#else
+
// define off_t
#if !defined(__WXMAC__) || defined(__UNIX__)
#include <sys/types.h>
typedef long off_t;
#endif
+#endif
+
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
//
// VisualAge C++ V4.0 cannot have any external linkage const decs
#if wxUSE_LOG
+#ifndef __WXWINCE__
#include <time.h> // for time_t
+#endif
#include "wx/dynarray.h"