From e2caf9876e79c39cd40eaf60894132e98857f759 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 25 May 2017 13:43:39 -0700 Subject: [PATCH] Export GetStackTrace Necessary when building with BUILD_SHARED_LIBS=1. --- src/stacktrace_windows-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stacktrace_windows-inl.h b/src/stacktrace_windows-inl.h index f329a7c8c..c747d96a3 100644 --- a/src/stacktrace_windows-inl.h +++ b/src/stacktrace_windows-inl.h @@ -31,13 +31,14 @@ // // Windows implementation - just use CaptureStackBackTrace +#include "config.h" #include "port.h" #include "stacktrace.h" #include _START_GOOGLE_NAMESPACE_ -// If you change this function, also change GetStackFrames below. +GOOGLE_GLOG_DLL_DECL int GetStackTrace(void** result, int max_depth, int skip_count) { if (max_depth > 64) { max_depth = 64;