Microsoft Visual C++ fix for log.h.
authorAndrei Errapart <andrei@errapartengineering.com>
Mon, 24 Aug 2015 20:52:27 +0000 (22:52 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 1 Sep 2015 10:40:12 +0000 (12:40 +0200)
kernel/log.h

index 8cf4714651e463885d7e8f880330e5d75ab12f50..28baf9886ab3569de2ed844dcc269ae999b90665 100644 (file)
 #  include <sys/resource.h>
 #endif
 
+#if defined(_MSC_VER)
+// At least this is not in MSVC++ 2013.
+#  define __PRETTY_FUNCTION__ __FUNCTION__
+#endif
+
 // from libs/sha1/sha1.h
 class SHA1;