summaryrefslogtreecommitdiff
path: root/src/pal/inc/mbusafecrt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/inc/mbusafecrt.h')
-rw-r--r--src/pal/inc/mbusafecrt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pal/inc/mbusafecrt.h b/src/pal/inc/mbusafecrt.h
index 9c516e032b..abc2dca406 100644
--- a/src/pal/inc/mbusafecrt.h
+++ b/src/pal/inc/mbusafecrt.h
@@ -31,11 +31,13 @@ typedef int errno_t;
// define the return value for success
#define SAFECRT_SUCCESS 0
-#if defined(_MSC_VER) || defined(__llvm__)
+#ifndef THROW_DECL
+#if defined(_MSC_VER) || defined(__llvm__) || !defined(__cplusplus)
#define THROW_DECL
#else
#define THROW_DECL throw()
-#endif
+#endif // !_MSC_VER
+#endif // !THROW_DECL
#ifdef __cplusplus
extern "C" {