mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 835715: #undef LOG at the top of nsJARChannel.cpp to fix build warning about it being (re)defined later on. r=jduell
This commit is contained in:
parent
96940593d7
commit
e6de6b4afd
@ -36,6 +36,12 @@ static NS_DEFINE_CID(kZipReaderCID, NS_ZIPREADER_CID);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Ignore any LOG macro that we inherit from arbitrary headers. (We define our
|
||||
// own LOG macro below.)
|
||||
#ifdef LOG
|
||||
#undef LOG
|
||||
#endif
|
||||
|
||||
#if defined(PR_LOGGING)
|
||||
//
|
||||
// set NSPR_LOG_MODULES=nsJarProtocol:5
|
||||
@ -43,6 +49,7 @@ static NS_DEFINE_CID(kZipReaderCID, NS_ZIPREADER_CID);
|
||||
static PRLogModuleInfo *gJarProtocolLog = nullptr;
|
||||
#endif
|
||||
|
||||
// If you ever want to define PR_FORCE_LOGGING in this file, see bug 545995
|
||||
#define LOG(args) PR_LOG(gJarProtocolLog, PR_LOG_DEBUG, args)
|
||||
#define LOG_ENABLED() PR_LOG_TEST(gJarProtocolLog, 4)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user