Pyhton with CW6.0 for Windows

Dario Deledda dariodeledda at hotmail.com
Sun Oct 22 14:08:59 EDT 2000


I'm building Python 2.0 with CodeWarrior6.0 for Windows in order to work
around some nasty link problems with our applications.
Copying the project from VisualStudio6.0 to CW6 there are lots of problems
with compiler predefinited symbols like _MSC_VER and other similar.
I managed to fix many of them but need some help.
Did anybody compile yet Python 2.0 under the same platform?

This is my addendum to config.h

/* MetroWerks CW C defines __MWERKS__ */
#if defined(__MWERKS__) && defined(__INTEL__)

#define timezone _timezone
#define daylight _daylight
#define tzname _tzname
#define timeb _timeb

#define COMPILER "[CodeWarrior6.0]"
#define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
#define IMPORT_8x3_NAMES //??

#include <ctype.h>
#include <direct.h>

typedef int pid_t;

#define NT /* NT is obsolete - please use MS_WIN32 instead */
#define MS_WIN32
#define MS_WINDOWS
#define NT_THREADS
#define USE_SOCKET
#define WITH_THREAD

/* assume 386 or higher */
#define WORD_BIT 32
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_VOID_P 4

#define VA_LIST_IS_ARRAY
#define HAVE_CLOCK
#define HAVE_STRFTIME
#define HAVE_STRERROR


#ifdef USE_DL_IMPORT
#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
#endif
#ifdef USE_DL_EXPORT
#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
#endif

#define HAVE_LONG_LONG 1
#define LONG_LONG long long
#define LONG_LONG __int64
#endif /* __MWERKS__ */

Dario Deledda





More information about the Python-list mailing list