From b0f9ebaca53fb5ff079d1330f4dccfce6687e4a5 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sun, 18 Nov 2012 22:51:54 +0000 Subject: [PATCH] Don't compile in x86emu debug code for builds with DEBUG set. --- headers/libs/x86emu/x86emu/x86emui.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headers/libs/x86emu/x86emu/x86emui.h b/headers/libs/x86emu/x86emu/x86emui.h index f11dc102ff..53f9fe4803 100644 --- a/headers/libs/x86emu/x86emu/x86emui.h +++ b/headers/libs/x86emu/x86emu/x86emui.h @@ -41,6 +41,11 @@ #ifndef __X86EMU_X86EMUI_H #define __X86EMU_X86EMUI_H +// Haiku workaround - don't want to compile all of the debugging code even +// when doing a debug build, it's unnecessary unless you're trying to debug +// x86emu itself. +#undef DEBUG + /* If we are compiling in C++ mode, we can compile some functions as * inline to increase performance (however the code size increases quite * dramatically in this case).