Fixed bug 1362 - SDL Fails to compile with Visual C++ Express 2008 with Feb 2007 DirectX SDK
Pallav Nawani 2012-01-04 00:48:29 PST Issue: Attempted to compile SDL as a static library. DirectX SDK: Feb 2007 OS: Win 7 Visual C++ Express 2008 Compliation Mode: Static (Changed project settings from dll to lib) Error: C1021: invalid preprocessor command 'warning' It seems that the #warning directive does not exist in Vc++ Express 2008.
This commit is contained in:
parent
12c990f0f8
commit
bc63cb4ee4
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <dxsdkver.h> /* XAudio2 exists as of the March 2008 DirectX SDK */
|
||||
#if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
|
||||
# warning Your DirectX SDK is too old. Disabling XAudio2 support.
|
||||
# pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.")
|
||||
#else
|
||||
# define SDL_XAUDIO2_HAS_SDK 1
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue