This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: winsound - probably win9x port is not working
Type: Stage:
Components: Windows Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, ocean-city
Priority: normal Keywords: patch

Created on 2006-07-24 12:54 by ocean-city, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
winsound.patch ocean-city, 2006-07-24 12:54
Messages (2)
msg50740 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2006-07-24 12:54
Hello. I found this bug while building trunk with VC6.

In current PC/winsound.c,

 #include <windows.h>
 #include <mmsystem.h>
 #ifdef HAVE_CONIO_H
 #include <conio.h>	/* port functions on Win9x */
 #endif
 #include <Python.h>

but HAVE_CONIO_H is defined in pyconfig.h, so Python.h
should be included before. Otherwise _outp() and _inp()
are always unresolved.

I hope attached patch will fix this problem.

msg50741 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-24 13:46
Logged In: YES 
user_id=849994

Applied in rev. 50802.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43712
2006-07-24 12:54:08ocean-citycreate