[Python-checkins] commit of r41562 - python/trunk/PC
martin.v.loewis
python-checkins at python.org
Tue Nov 29 18:08:28 CET 2005
Author: martin.v.loewis
Date: Tue Nov 29 18:08:24 2005
New Revision: 41562
Modified:
python/trunk/PC/winsound.c
Log:
Limit x86 machine instructions and Win95 support to _M_IX86.
Modified: python/trunk/PC/winsound.c
==============================================================================
--- python/trunk/PC/winsound.c (original)
+++ python/trunk/PC/winsound.c Tue Nov 29 18:08:24 2005
@@ -145,6 +145,7 @@
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 @@
/* Restore speaker control to original state. */
_outp(0x61, speaker_state);
}
+#endif /* _M_IX86 */
else {
assert(!"winsound's whichOS has insane value");
}
More information about the Python-checkins
mailing list