From 5a37a53cb0224ffcde5990ac19981e2dbace2489 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 28 Feb 2019 16:22:55 +1100 Subject: [PATCH] [host] move windows specific debug code to the host --- common/debug.h | 7 +------ host/Capture/DXGI.cpp | 2 +- host/MFT/H264.cpp | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/common/debug.h b/common/debug.h index e0ffc9f8..17babeca 100644 --- a/common/debug.h +++ b/common/debug.h @@ -58,9 +58,4 @@ Place, Suite 330, Boston, MA 02111-1307 USA #define DEBUG_PROTO(fmt, args...) DEBUG_PRINT("[P]", fmt, ##args) #else #define DEBUG_PROTO(fmt, ...) do {} while(0) -#endif - -#ifdef _WIN32 - #include "Util.h" - #define DEBUG_WINERROR(x, y) Util::DebugWinError(STRIPPATH(__FILE__), __LINE__, __FUNCTION__, x, y) -#endif +#endif \ No newline at end of file diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index 995ec41d..36480dcb 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include "Capture/DXGI.h" using namespace Capture; -#include "common/debug.h" +#include "WinDebug.h" #include "common/memcpySSE.h" static const char * DXGI_FORMAT_STR[] = { diff --git a/host/MFT/H264.cpp b/host/MFT/H264.cpp index db959582..2d28f195 100644 --- a/host/MFT/H264.cpp +++ b/host/MFT/H264.cpp @@ -19,7 +19,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include "MFT/H264.h" -#include "common/debug.h" +#include "WinDebug.h" #include "common/memcpySSE.h" #include