Skip to content

Commit 6fb92b4

Browse files
committed
[Fix] Fix MPT_ALL_LOGGING build.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@23689 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent d7dd5c3 commit 6fb92b4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

common/serialization_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OPENMPT_NAMESPACE_BEGIN
4242

4343

4444
#ifdef SSB_LOGGING
45-
#define SSB_LOG(x) MPT_LOG_GLOBAL(LogDebug, "serialization", x)
45+
#define SSB_LOG(x) MPT_LOG_GLOBAL(LogDebug, "serialization", (x))
4646
#else
4747
#define SSB_LOG(x) do { } while(0)
4848
#endif

mptrack/CommandSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ std::vector<HKL> GetKeyboardLayouts()
6262
#endif
6363

6464
#ifdef MPT_COMMANDSET_LOGGING
65-
#define LOG_COMMANDSET(x) MPT_LOG_GLOBAL(LogDebug, "CommandSet", x)
65+
#define LOG_COMMANDSET(x) MPT_LOG_GLOBAL(LogDebug, "CommandSet", (x))
6666
#else
6767
#define LOG_COMMANDSET(x) do { } while(0)
6868
#endif

src/openmpt/sounddevice/SoundDevicePortAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace SoundDevice
5757
#ifdef MPT_WITH_PORTAUDIO
5858

5959
#ifdef MPT_ALL_LOGGING
60-
#define PALOG(x) MPT_LOG(GetLogger(), LogDebug, "PortAudio", x)
60+
#define PALOG(x) MPT_LOG(GetLogger(), LogDebug, "PortAudio", (x))
6161
#define PA_LOG_ENABLED 1
6262
#else
6363
#define PALOG(x) \

0 commit comments

Comments
 (0)