bug 773865. Setting env var `MOZ_WINCONSOLE` now causes `MOZ_WINCONSOLE` to be defined for the preprocessor as well. windbgdlg no longer fails to build when `MOZ_WINCONSOLE` env var has been set to 1. r=ted
--- a/configure.in
+++ b/configure.in
@@ -358,16 +358,20 @@ else
if test -z "$HOST_AR"; then
HOST_AR="$AR"
fi
if test -z "$HOST_AR_FLAGS"; then
HOST_AR_FLAGS="$AR_FLAGS"
fi
fi
+if test -n "$MOZ_WINCONSOLE"; then
+ AC_DEFINE(MOZ_WINCONSOLE)
+fi
+
MOZ_TOOL_VARIABLES
dnl ========================================================
dnl Special win32 checks
dnl ========================================================
# With win8, sdk target=602, WINVER=602
MOZ_ARG_ENABLE_BOOL(metro,
--- a/xpcom/windbgdlg/Makefile.in
+++ b/xpcom/windbgdlg/Makefile.in
@@ -9,10 +9,11 @@ srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
SIMPLE_PROGRAMS = windbgdlg$(BIN_SUFFIX)
CPPSRCS = windbgdlg.cpp
+MOZ_WINCONSOLE = 0
include $(topsrcdir)/config/rules.mk
--- a/xulrunner/app/Makefile.in
+++ b/xulrunner/app/Makefile.in
@@ -52,17 +52,16 @@ LIBS += \
ifndef MOZ_WINCONSOLE
ifdef MOZ_DEBUG
MOZ_WINCONSOLE = 1
else
MOZ_WINCONSOLE = 0
endif
endif
-DEFINES += -DMOZ_WINCONSOLE=$(MOZ_WINCONSOLE)
# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
NSDISTMODE = copy
include $(topsrcdir)/config/config.mk
ifdef _MSC_VER