From 33cd40af8a271a8994b4c2fc71395e338779d4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 5 Dec 2010 14:27:35 +0100 Subject: __FILE__ should actually work on windows as well. diff --git a/Swiften/Base/Log.h b/Swiften/Base/Log.h index afcfe90..5296860 100644 --- a/Swiften/Base/Log.h +++ b/Swiften/Base/Log.h @@ -11,10 +11,5 @@ namespace Swift { extern bool logging; } -#ifndef SWIFTEN_PLATFORM_WINDOWS #define SWIFT_LOG(severity) \ - if (!Swift::logging) {} else std::cerr << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ": " -#else -#define SWIFT_LOG(severity) \ - if (!Swift::logging) {} else std::cerr -#endif + if (!Swift::logging) {} else std::cerr << "[" << #severity << "] " << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ": " -- cgit v0.10.2-6-g49f6