From 40f19cf2c4ebf48a0412f29864730580884c4e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 24 Oct 2014 20:12:23 -0200 Subject: [PATCH 1/2] (d3d) Move C++ headers to the top to avoid namespace conflicts --- gfx/d3d/d3d.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/d3d/d3d.hpp b/gfx/d3d/d3d.hpp index 9a42bd2e8a..2f236510d2 100644 --- a/gfx/d3d/d3d.hpp +++ b/gfx/d3d/d3d.hpp @@ -17,6 +17,9 @@ #ifndef D3DVIDEO_HPP__ #define D3DVIDEO_HPP__ +#include +#include + #ifdef HAVE_CONFIG_H #include "../../config.h" #endif @@ -55,8 +58,7 @@ #include #endif #include "d3d_wrapper.h" -#include -#include + #ifdef HAVE_OVERLAY typedef struct From 3479614e68915b3627aa49debad229182be45239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 24 Oct 2014 20:15:12 -0200 Subject: [PATCH 2/2] (d3d) Fix undeclared pretro_get_memory_data() error --- gfx/d3d/d3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index ed5fe7925c..317b36b72b 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -54,6 +54,10 @@ #endif +#if !defined(DONT_HAVE_STATE_TRACKER) && !defined(_XBOX) +#include "../../dynamic.h" +#endif + /* forward declarations */ static void d3d_calculate_rect(d3d_video_t *d3d, unsigned width, unsigned height,