Apply backgroundcolors.patch
[TortoiseGit.git] / ext / libgit2-Fix-warning-ENABLE_INTSAFE_SIGNED_FUNCTIONS-macro-re.patch
blob70d4d276f098804631a663dfbe0002e4498d060d
1 From a7e6c4d7d81c3606a051aabac49768a52b4c7dce Mon Sep 17 00:00:00 2001
2 From: Sven Strickroth <email@cs-ware.de>
3 Date: Sat, 9 Dec 2023 16:32:55 +0100
4 Subject: [PATCH] Fix warning "'ENABLE_INTSAFE_SIGNED_FUNCTIONS': macro
5 redefinition"
7 Signed-off-by: Sven Strickroth <email@cs-ware.de>
8 ---
9 src/util/integer.h | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
12 diff --git a/src/util/integer.h b/src/util/integer.h
13 index 63277177b..a9e416cc3 100644
14 --- a/src/util/integer.h
15 +++ b/src/util/integer.h
16 @@ -89,7 +89,9 @@ GIT_INLINE(int) git__is_int(int64_t p)
17 /* Use Microsoft's safe integer handling functions where available */
18 #elif defined(_MSC_VER)
20 -# define ENABLE_INTSAFE_SIGNED_FUNCTIONS
21 +# if !defined(ENABLE_INTSAFE_SIGNED_FUNCTIONS)
22 +# define ENABLE_INTSAFE_SIGNED_FUNCTIONS
23 +# endif
24 # include <intsafe.h>
26 # define git__add_sizet_overflow(out, one, two) \
27 --
28 2.43.0.windows.1