Commit 3dd1942bece79fb99f4018ea7b5df7a00056e833

Edward Thomson 2019-06-15T20:43:13

win32: don't re-define RtlCaptureStackBackTrace RtlCaptureStackBackTrace is well-defined in Windows, no need to redefine it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/win32/w32_stack.c b/src/win32/w32_stack.c
index c9d6b1a..6eb7196 100644
--- a/src/win32/w32_stack.c
+++ b/src/win32/w32_stack.c
@@ -13,11 +13,6 @@
 #include "win32/posix.h"
 #include "hash.h"
 
-/**
- * This is supposedly defined in WinBase.h (from Windows.h) but there were linker issues.
- */
-USHORT WINAPI RtlCaptureStackBackTrace(ULONG, ULONG, PVOID*, PULONG);
-
 static bool   g_win32_stack_initialized = false;
 static HANDLE g_win32_stack_process = INVALID_HANDLE_VALUE;
 static git_win32__stack__aux_cb_alloc  g_aux_cb_alloc  = NULL;