mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
Limit x86 machine instructions and Win95 support to _M_IX86.
This commit is contained in:
parent
ede187f022
commit
30b4975d29
1 changed files with 2 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ sound_beep(PyObject *self, PyObject *args)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef _M_IX86
|
||||||
else if (whichOS == Win9X) {
|
else if (whichOS == Win9X) {
|
||||||
int speaker_state;
|
int speaker_state;
|
||||||
/* Force timer into oscillator mode via timer control port. */
|
/* 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. */
|
/* Restore speaker control to original state. */
|
||||||
_outp(0x61, speaker_state);
|
_outp(0x61, speaker_state);
|
||||||
}
|
}
|
||||||
|
#endif /* _M_IX86 */
|
||||||
else {
|
else {
|
||||||
assert(!"winsound's whichOS has insane value");
|
assert(!"winsound's whichOS has insane value");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue