From: kasperl@chromium.org Date: Mon, 27 Oct 2008 09:48:47 +0000 (+0000) Subject: Fix issue 128. X-Git-Tag: upstream/4.7.83~25114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a510287b666fa7fb0e4bd025f7120577b4cd8643;p=platform%2Fupstream%2Fv8.git Fix issue 128. Review URL: http://codereview.chromium.org/8617 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@600 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/jsregexp.cc b/src/jsregexp.cc index de03b6e21..02b53e00d 100644 --- a/src/jsregexp.cc +++ b/src/jsregexp.cc @@ -30,12 +30,21 @@ #include "execution.h" #include "factory.h" #include "jsregexp.h" -#include "third_party/jscre/pcre.h" #include "platform.h" #include "runtime.h" #include "top.h" #include "compilation-cache.h" +// Including pcre.h undefines DEBUG to avoid getting debug output from +// the JSCRE implementation. Make sure to redefine it in debug mode +// after having included the header file. +#ifdef DEBUG +#include "third_party/jscre/pcre.h" +#define DEBUG +#else +#include "third_party/jscre/pcre.h" +#endif + namespace v8 { namespace internal {