diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-07-12 18:43:22 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-11-21 21:54:13 +0000 |
| commit | 8aed4629b13a5335c0d84792a61c303274f1e09c (patch) | |
| tree | 432e59472be6bba687c3413cd6736b2ae0a43eee /src | |
| parent | 51825c4f39af069d413fdb6cc661e53c4b63ad47 (diff) | |
| download | libgit2-8aed4629b13a5335c0d84792a61c303274f1e09c.tar.gz | |
cmake: rename MSVC_CRTDBG to WIN32_LEAKCHECK
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/allocators/win32_leakcheck.c | 2 | ||||
| -rw-r--r-- | src/features.h.in | 2 | ||||
| -rw-r--r-- | src/win32/w32_leakcheck.c | 2 | ||||
| -rw-r--r-- | src/win32/w32_leakcheck.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index 291511d62..6efa104ca 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -15,7 +15,7 @@ git_allocator git__allocator; static int setup_default_allocator(void) { -#if defined(GIT_MSVC_CRTDBG) +#if defined(GIT_WIN32_LEAKCHECK) return git_win32_leakcheck_init_allocator(&git__allocator); #else return git_stdalloc_init_allocator(&git__allocator); diff --git a/src/allocators/win32_leakcheck.c b/src/allocators/win32_leakcheck.c index 3be45cae6..fe06a14af 100644 --- a/src/allocators/win32_leakcheck.c +++ b/src/allocators/win32_leakcheck.c @@ -7,7 +7,7 @@ #include "win32_leakcheck.h" -#if defined(GIT_MSVC_CRTDBG) +#if defined(GIT_WIN32_LEAKCHECK) #include "win32/w32_leakcheck.h" diff --git a/src/features.h.in b/src/features.h.in index e000de5e0..c8d01804f 100644 --- a/src/features.h.in +++ b/src/features.h.in @@ -4,7 +4,7 @@ #cmakedefine GIT_DEBUG_POOL 1 #cmakedefine GIT_TRACE 1 #cmakedefine GIT_THREADS 1 -#cmakedefine GIT_MSVC_CRTDBG 1 +#cmakedefine GIT_WIN32_LEAKCHECK 1 #cmakedefine GIT_ARCH_64 1 #cmakedefine GIT_ARCH_32 1 diff --git a/src/win32/w32_leakcheck.c b/src/win32/w32_leakcheck.c index 31803d597..95187a570 100644 --- a/src/win32/w32_leakcheck.c +++ b/src/win32/w32_leakcheck.c @@ -7,7 +7,7 @@ #include "w32_leakcheck.h" -#if defined(GIT_MSVC_CRTDBG) +#if defined(GIT_WIN32_LEAKCHECK) #include "Windows.h" #include "Dbghelp.h" diff --git a/src/win32/w32_leakcheck.h b/src/win32/w32_leakcheck.h index 29bce4e89..7da03ab0e 100644 --- a/src/win32/w32_leakcheck.h +++ b/src/win32/w32_leakcheck.h @@ -13,7 +13,7 @@ /* Initialize the win32 leak checking system. */ int git_win32_leakcheck_global_init(void); -#if defined(GIT_MSVC_CRTDBG) +#if defined(GIT_WIN32_LEAKCHECK) #include <stdlib.h> #include <crtdbg.h> |
