Message79424
.... 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__ */ |
|
Date |
User |
Action |
Args |
2009-01-08 16:47:56 | lkcl | set | recipients:
+ lkcl, mark.dickinson |
2009-01-08 16:47:56 | lkcl | set | messageid: <1231433276.23.0.40331939398.issue4880@psf.upfronthosting.co.za> |
2009-01-08 16:47:55 | lkcl | link | issue4880 messages |
2009-01-08 16:47:54 | lkcl | create | |
|