Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1362 - SDL Fails to compile with Visual C++ Express 2008 wi…
Browse files Browse the repository at this point in the history
…th 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.
  • Loading branch information
slouken committed Jan 7, 2012
1 parent c95f3f8 commit 4cd1f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/xaudio2/SDL_xaudio2.c
Expand Up @@ -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
Expand Down

0 comments on commit 4cd1f4f

Please sign in to comment.