Permalink
Browse files

According to Stephen Fraser, PF_XMMI64_INSTRUCTIONS_AVAILABLE was onl…

…y defined

recently and is not found in older compilers like MSVC6.

Added
#ifndef PF_XMMI64_INSTRUCTIONS_AVAILABLE
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
#endif

to fix it.
  • Loading branch information...
1 parent c07bd8b commit b0e2a7c726695ffb238aae4a41ab6f336dead713 raphassenat committed Apr 12, 2005
Showing with 7 additions and 2 deletions.
  1. +7 −2 drivers/drv_ds.c
View
@@ -1,5 +1,5 @@
/* MikMod sound library
- (c) 1998-2001 Miodrag Vallat and others - see file AUTHORS for
+ (c) 1998-2005 Miodrag Vallat and others - see file AUTHORS for
complete list.
This library is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
/*==============================================================================
- $Id: drv_ds.c,v 1.2 2005/03/30 19:09:11 realtech Exp $
+ $Id: drv_ds.c,v 1.3 2005/04/12 16:19:38 raphassenat Exp $
Driver for output on win32 platforms using DirectSound
@@ -46,6 +46,11 @@
#define INITGUID
#include <dsound.h>
+/* Not in compilers <= MSVC 6 */
+#ifndef PF_XMMI64_INSTRUCTIONS_AVAILABLE
+#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
+#endif
+
/* DSBCAPS_CTRLALL is not defined anymore with DirectX 7. Of course DirectSound
is a coherent, backwards compatible API... */
#ifndef DSBCAPS_CTRLALL

0 comments on commit b0e2a7c

Please sign in to comment.