[Pythonmac-SIG] Python 2.2 Framework _REENTRANT followup

Adam Eijdenberg adam@switchedonsoftware.com
Mon, 31 Dec 2001 00:44:38 +1100


> That's right, but if you add the switch to the commandline it won't
> even try the precompiled headers and you won't get the warnings.

Or, if you don't want to spend five minutes waiting to compile, move one 
line in your sources file to change:

#include <Python/Python.h>
#include <Carbon/Carbon.h>
#include <CoreFoundation/CoreFoundation.h>

so it reads:

#include <Carbon/Carbon.h>
#include <CoreFoundation/CoreFoundation.h>
#include <Python/Python.h>

and ta da, no more precompiled header warnings.
(and then feel like a real idiot for wasting everyone's time! :)

Kind regards,
Adam Eijdenberg
Switched on Software

adam@switchedonsoftware.com
http://www.switchedonsoftware.com/

Phone:  +61 3 6231 3467
Fax:    +61 3 6231 3476
Mobile: +61 4 0704 6857

47 Molle Street
Hobart TAS 7000
Australia