diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-11-29 17:08:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-11-29 17:08:24 (GMT) |
commit | 30b4975d29bddaf820978422465abbc8589dd759 (patch) | |
tree | 3865742cc70d191331a4c35278575c4984ef778b /PC/winsound.c | |
parent | ede187f0225a400e3b44915c71f1f6280380fd36 (diff) | |
download | cpython-30b4975d29bddaf820978422465abbc8589dd759.zip cpython-30b4975d29bddaf820978422465abbc8589dd759.tar.gz cpython-30b4975d29bddaf820978422465abbc8589dd759.tar.bz2 |
Limit x86 machine instructions and Win95 support to _M_IX86.
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index c6f3a53..b94b322 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"); } |