summaryrefslogtreecommitdiffstats
path: root/recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch')
-rw-r--r--recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch b/recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch
new file mode 100644
index 00000000..37f9d753
--- /dev/null
+++ b/recipes-extended/oath/oath/0001-oath-fix-macro-definition-error.patch
@@ -0,0 +1,32 @@
1From ba86973a3014caa9a4110611f470d4d9af5c2982 Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com>
3Date: Thu, 27 Sep 2018 09:37:08 +0800
4Subject: [PATCH] oath: fix macro definition error
5
6Signed-off-by: Dengke Du <dengke.du@windriver.com>
7---
8 oathtool/gl/intprops.h | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11diff --git a/oathtool/gl/intprops.h b/oathtool/gl/intprops.h
12index e1fce5c..cee4997 100644
13--- a/oathtool/gl/intprops.h
14+++ b/oathtool/gl/intprops.h
15@@ -230,11 +230,11 @@ verify (TYPE_MAXIMUM (long long int) == LLONG_MAX);
16 (e.g., A and B) have the same type as MIN and MAX. Instead, they assume
17 that the result (e.g., A + B) has that type. */
18 #if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL
19-# define _GL_ADD_OVERFLOW(a, b, min, max)
20+# define _GL_ADD_OVERFLOW(a, b, min, max) \
21 __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0)
22-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max)
23+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \
24 __builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0)
25-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max)
26+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \
27 __builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0)
28 #else
29 # define _GL_ADD_OVERFLOW(a, b, min, max) \
30--
312.7.4
32