diff --git a/channels/tsmf/client/oss/tsmf_oss.c b/channels/tsmf/client/oss/tsmf_oss.c index 8f6fed264..374bc5c89 100644 --- a/channels/tsmf/client/oss/tsmf_oss.c +++ b/channels/tsmf/client/oss/tsmf_oss.c @@ -58,9 +58,12 @@ typedef struct UINT32 data_size_last; } TSMFOssAudioDevice; -#define OSS_LOG_ERR(_text, _error) \ - if (_error != 0) \ - WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error)); +#define OSS_LOG_ERR(_text, _error) \ + do \ + { \ + if (_error != 0) \ + WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error)); \ + } while (0) static BOOL tsmf_oss_open(ITSMFAudioDevice* audio, const char* device) {