summaryrefslogtreecommitdiff
path: root/src/stacktrace_win32-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stacktrace_win32-inl.h')
-rw-r--r--src/stacktrace_win32-inl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stacktrace_win32-inl.h b/src/stacktrace_win32-inl.h
index 892cd7c..bbd4c43 100644
--- a/src/stacktrace_win32-inl.h
+++ b/src/stacktrace_win32-inl.h
@@ -49,6 +49,11 @@
// This code is inspired by a patch from David Vitek:
// http://code.google.com/p/google-perftools/issues/detail?id=83
+#ifndef BASE_STACKTRACE_WIN32_INL_H_
+#define BASE_STACKTRACE_WIN32_INL_H_
+// Note: this file is included into stacktrace.cc more than once.
+// Anything that should only be defined once should be here:
+
#include "config.h"
#include <windows.h> // for GetProcAddress and GetModuleHandle
#include <assert.h>
@@ -82,3 +87,5 @@ PERFTOOLS_DLL_DECL int GetStackFrames(void** /* pcs */,
assert(0 == "Not yet implemented");
return 0;
}
+
+#endif // BASE_STACKTRACE_WIN32_INL_H_