Author lkcl
Recipients lkcl, mark.dickinson
Date 2009-01-08.16:47:54
SpamBayes Score 0.202832
Marked as misclassified No
Message-id <1231433276.23.0.40331939398.issue4880@psf.upfronthosting.co.za>
In-reply-to
Content
.... hmmm... noo, it's already #defined to 0x7fffffffL in
both PC/pyconfig.h _and_ in /usr/include/wine/msvcrt/limits.h

so .... this works (Include/pyports.h)

#ifdef __WINE__  /* weird: you have to typecast 0x7fffffffL to long */
#undef LONG_MAX
#undef LONG_MIN
#define LONG_MAX ((long)0x7FFFFFFFL)
#define LONG_MIN ((long)(-LONG_MAX-1))
#else
#ifndef LONG_MAX
#if SIZEOF_LONG == 4
#define LONG_MAX 0X7FFFFFFFL
#elif SIZEOF_LONG == 8
#define LONG_MAX 0X7FFFFFFFFFFFFFFFL
#else
#error "could not set LONG_MAX in pyport.h"
#endif
#endif

#ifndef LONG_MIN
#define LONG_MIN (-LONG_MAX-1)
#endif

#endif /* __WINE__ */
History
Date User Action Args
2009-01-08 16:47:56lkclsetrecipients: + lkcl, mark.dickinson
2009-01-08 16:47:56lkclsetmessageid: <1231433276.23.0.40331939398.issue4880@psf.upfronthosting.co.za>
2009-01-08 16:47:55lkcllinkissue4880 messages
2009-01-08 16:47:54lkclcreate