summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-05-30 15:15:08 -0400
committerAndrew Morrow <acm@mongodb.com>2019-07-17 10:49:15 -0400
commitcbead440945c78b577c29dab8c11e81a58ee7731 (patch)
tree424c0395df4ac4bfcf2ab145df259e567006b8f3 /src/mongo/platform
parent19d0d47fb83d01edb18e0bcb235d6c39bbe16bbd (diff)
downloadmongo-cbead440945c78b577c29dab8c11e81a58ee7731.tar.gz
SERVER-36242 Optionally use libunwind for backtraces
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/compiler_gcc.h1
-rw-r--r--src/mongo/platform/compiler_msvc.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/platform/compiler_gcc.h b/src/mongo/platform/compiler_gcc.h
index bfb8cf7513c..839ef93e401 100644
--- a/src/mongo/platform/compiler_gcc.h
+++ b/src/mongo/platform/compiler_gcc.h
@@ -86,6 +86,7 @@
#define MONGO_COMPILER_API_EXPORT __attribute__((__visibility__("default")))
#define MONGO_COMPILER_API_IMPORT
+#define MONGO_COMPILER_API_HIDDEN_FUNCTION __attribute__((visibility("hidden")))
#define MONGO_COMPILER_API_CALLING_CONVENTION
#define MONGO_likely(x) static_cast<bool>(__builtin_expect(static_cast<bool>(x), 1))
diff --git a/src/mongo/platform/compiler_msvc.h b/src/mongo/platform/compiler_msvc.h
index c9f50eba68a..ac71c1ddd24 100644
--- a/src/mongo/platform/compiler_msvc.h
+++ b/src/mongo/platform/compiler_msvc.h
@@ -50,6 +50,7 @@
#define MONGO_COMPILER_API_EXPORT __declspec(dllexport)
#define MONGO_COMPILER_API_IMPORT __declspec(dllimport)
+#define MONGO_COMPILER_API_HIDDEN_FUNCTION
#define MONGO_WARN_UNUSED_RESULT_CLASS
#define MONGO_WARN_UNUSED_RESULT_FUNCTION