Added documentation for using MW compilers with configure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
58
docs/metrowerks/wchar_t_panther_fix/machine/ansi.h
Normal file
58
docs/metrowerks/wchar_t_panther_fix/machine/ansi.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* File: ansi.h
|
||||
* <09>2000-2002 Metrowerks Corporation. All rights reserved.
|
||||
*
|
||||
* Content: wchar_t overrides for OS X
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _MW_ANSI_H_
|
||||
#define _MW_ANSI_H_
|
||||
|
||||
#if defined (__ppc__)
|
||||
#include <ppc/ansi.h>
|
||||
#elif defined (__i386__)
|
||||
#include <i386/ansi.h>
|
||||
#else
|
||||
#error architecture not supported
|
||||
#endif
|
||||
|
||||
#ifndef _BSD_WCHAR_T_DEFINED_
|
||||
#define _BSD_WCHAR_T_DEFINED_
|
||||
|
||||
#if !__cplusplus || !__option(wchar_type)
|
||||
typedef int wchar_t;
|
||||
#undef __WCHAR_TYPE__
|
||||
#define __WCHAR_TYPE__ int
|
||||
#else
|
||||
#undef __WCHAR_TYPE__
|
||||
#define __WCHAR_TYPE__ wchar_t
|
||||
#endif
|
||||
|
||||
#undef _BSD_WCHAR_T_
|
||||
#define _BSD_WCHAR_T_ __WCHAR_TYPE__ /* wchar_t */
|
||||
|
||||
#undef _BSD_RUNE_T_
|
||||
#define _BSD_RUNE_T_ __WCHAR_TYPE__ /* rune_t */
|
||||
|
||||
#ifndef WCHAR_MIN
|
||||
#define WCHAR_MIN ((wchar_t) 0x80000000U)
|
||||
#define WCHAR_MAX ((wchar_t) 0x7FFFFFFFU)
|
||||
#endif
|
||||
|
||||
typedef wchar_t wint_t;
|
||||
typedef wchar_t wctype_t;
|
||||
#if 0 // 10.3 headers declare mbstate_t as union
|
||||
typedef int mbstate_t;
|
||||
#endif
|
||||
typedef wchar_t Wint_t;
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
typedef _BSD_WCHAR_T_ rune_t;
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _MW_ANSI_H_ */
|
Reference in New Issue
Block a user