From: Martin v. Löwis Date: Tue, 29 Nov 2005 17:08:24 +0000 (+0000) Subject: Limit x86 machine instructions and Win95 support to _M_IX86. X-Git-Tag: v2.5a0~1089 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30b4975d29bddaf820978422465abbc8589dd759;p=thirdparty%2FPython%2Fcpython.git Limit x86 machine instructions and Win95 support to _M_IX86. --- diff --git a/PC/winsound.c b/PC/winsound.c index c6f3a534fa1f..b94b32206860 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -145,6 +145,7 @@ sound_beep(PyObject *self, PyObject *args) return NULL; } } +#ifdef _M_IX86 else if (whichOS == Win9X) { int speaker_state; /* Force timer into oscillator mode via timer control port. */ @@ -169,6 +170,7 @@ sound_beep(PyObject *self, PyObject *args) /* Restore speaker control to original state. */ _outp(0x61, speaker_state); } +#endif /* _M_IX86 */ else { assert(!"winsound's whichOS has insane value"); }