summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-05 13:27:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-05 13:27:35 (GMT)
commit33cd40af8a271a8994b4c2fc71395e338779d4dc (patch)
tree8376cefe8ef0d4391a86359ef35702c573180d2d /Swiften
parent41eb680f10fc2c974c89296dfdb5737e686ca85e (diff)
downloadswift-contrib-33cd40af8a271a8994b4c2fc71395e338779d4dc.zip
swift-contrib-33cd40af8a271a8994b4c2fc71395e338779d4dc.tar.bz2
__FILE__ should actually work on windows as well.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Base/Log.h7
1 files changed, 1 insertions, 6 deletions
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__ << ": "