Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30b4975

Browse files
committed
Limit x86 machine instructions and Win95 support to _M_IX86.
1 parent ede187f commit 30b4975

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

PC/winsound.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ sound_beep(PyObject *self, PyObject *args)
145145
return NULL;
146146
}
147147
}
148+
#ifdef _M_IX86
148149
else if (whichOS == Win9X) {
149150
int speaker_state;
150151
/* Force timer into oscillator mode via timer control port. */
@@ -169,6 +170,7 @@ sound_beep(PyObject *self, PyObject *args)
169170
/* Restore speaker control to original state. */
170171
_outp(0x61, speaker_state);
171172
}
173+
#endif /* _M_IX86 */
172174
else {
173175
assert(!"winsound's whichOS has insane value");
174176
}

0 commit comments

Comments
 (0)