Bug 757060 - redit fails to compile on mingw due to wmain linkage error r=glandium

This commit is contained in:
Jacek Caban 2012-05-22 10:44:13 +02:00
parent 414a7687cd
commit b3cd06bf34
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,11 @@ DEFINES += -DWIN32_LEAN_AND_MEAN \
LIBS = \
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
$(NULL)
ifdef GNU_CC
WIN32_EXE_LDFLAGS = -municode
endif
endif
include $(topsrcdir)/config/rules.mk

View File

@ -96,6 +96,9 @@ namespace {
typedef Scoped<ScopedResourceUpdateTraits> ScopedResourceUpdate;
};
#ifdef __MINGW32__
extern "C"
#endif
int
wmain(int argc, wchar_t** argv)
{