aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-05-15 03:09:41 +0000
committerlloyd <[email protected]>2014-05-15 03:09:41 +0000
commit9ac0b0612ea36dd9a2e850745238c20ee6b0444f (patch)
treea1c04fbd0734ad11d86f4553e36e844d016363e6 /src/build-data
parent318b0e20fa1edd2dc700a01e47d31ebb8c219460 (diff)
VC2013 doesn't support __func__. Github #22
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/buildh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 6172af247..636552a4f 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -113,6 +113,12 @@
#endif
+#if defined(_MSC_VER)
+ #define BOTAN_CURRENT_FUNCTION __FUNCTION__
+#else
+ #define BOTAN_CURRENT_FUNCTION __func__
+#endif
+
#if !defined(BOTAN_DEPRECATED)
#define BOTAN_DEPRECATED(msg)
#endif