diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-07 15:30:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-07 15:30:23 (GMT) |
commit | b760923b206db4f67fdfabaa5a16a5cd0bf3951e (patch) | |
tree | 7f0152f50238f9e1f50e86852cea71a236b1384f /Mac/Modules/macspeechmodule.c | |
parent | 71c5b02859b56a57c6657a783b482a90c4516e33 (diff) | |
download | cpython-b760923b206db4f67fdfabaa5a16a5cd0bf3951e.zip cpython-b760923b206db4f67fdfabaa5a16a5cd0bf3951e.tar.gz cpython-b760923b206db4f67fdfabaa5a16a5cd0bf3951e.tar.bz2 |
Got rid of 68k-Mac and other outdated ifdefs.
Diffstat (limited to 'Mac/Modules/macspeechmodule.c')
-rw-r--r-- | Mac/Modules/macspeechmodule.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Mac/Modules/macspeechmodule.c b/Mac/Modules/macspeechmodule.c index a6fbddd..b6c6c2c 100644 --- a/Mac/Modules/macspeechmodule.c +++ b/Mac/Modules/macspeechmodule.c @@ -42,10 +42,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "pascal.h" #endif /* __MWERKS__ */ -#ifdef __powerc #include <CodeFragments.h> int lib_available; -#endif /* __powerc */ /* Somehow the Apple Fix2X and X2Fix don't do what I expect */ #define fixed2double(x) (((double)(x))/32768.0) @@ -60,9 +58,7 @@ init_available() { OSErr err; long result; -#ifdef __powerc lib_available = ((ProcPtr)SpeakString != (ProcPtr)0); -#endif err = Gestalt(gestaltSpeechAttr, &result); if ( err == noErr && (result & (1<<gestaltSpeechMgrPresent))) return 1; @@ -75,12 +71,10 @@ check_available() { PyErr_SetString(ms_error_object, "Speech Mgr not available"); return 0; } -#ifdef __powerc if ( !lib_available ) { PyErr_SetString(ms_error_object, "Speech Mgr available, but shared lib missing"); return 0; } -#endif return 1; } |