[Python-Dev] LONG_LONG (Was: [Python-checkins] python/dist/src/Misc NEWS, 1.703, 1.704) (original) (raw)
Skip Montanaro skip@pobox.com
Mon, 7 Apr 2003 09:56:41 -0500
- Previous message: [Python-Dev] LONG_LONG (Was: [Python-checkins] python/dist/src/Misc NEWS,1.703,1.704)
- Next message: [Python-Dev] socket question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas> What is the recommended way to port code like this to Python
Thomas> 2.3, and still remain compatible with 2.2?
Thomas> #ifdef HAVE_LONG_LONG
Thomas> LONG_LONG q;
Thomas> #endifWouldn't this work?
#ifdef HAVE_LONG_LONG
ifdef Py_LONG_LONG
Py_LONG_LONG q;else
LONG_LONG q;endif
#endif
As MarkH pointed out, this change is going to break some code, but there's probably no way around it. Obviously, some other package defines a LONG_LONG macro or there wouldn't have been a bug report. Better to bite the bullet sooner than later.
Skip
- Previous message: [Python-Dev] LONG_LONG (Was: [Python-checkins] python/dist/src/Misc NEWS,1.703,1.704)
- Next message: [Python-Dev] socket question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]