Enable use of D3D9 only when targeting desktop apps

Don't try to build this when building for phone/windows store (aka
metro/winrt) apps - this API isn't available there.
This commit is contained in:
Martin Storsjö 2013-12-28 00:08:18 +02:00
parent 05bf57a2af
commit 65fa5d2a37

View File

@ -47,8 +47,15 @@
#include "codec_def.h"
#if defined(_MSC_VER) && (_MSC_VER>=1500) // vs2008 and upper
#ifdef WINAPI_FAMILY
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#define ENABLE_DISPLAY_MODULE // enable/disable the render feature
#endif
#else /* defined(WINAPI_FAMILY) */
#define ENABLE_DISPLAY_MODULE // enable/disable the render feature
#endif
#endif
#ifdef ENABLE_DISPLAY_MODULE
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////