PATCH: dlls/dsound/tests/dsound.c

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Sun Jan 19 15:47:13 CST 2003


<malloc.h> is a non-standard header and highly non-portable; please
use <stdlib.h> instead, or you'll break non-Linux platforms.

Gerald


#include <stdlib.h> instead of the non-standard <malloc.h>.

Index: dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound.c,v
retrieving revision 1.4
diff -u -3 -p -r1.4 dsound.c
--- dsound.c	16 Jan 2003 00:19:49 -0000	1.4
+++ dsound.c	19 Jan 2003 21:45:43 -0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */

-#include <malloc.h>
 #include <math.h>
+#include <stdlib.h>

 #include "wine/test.h"
 #include "dsound.h"



More information about the wine-patches mailing list