diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /external/redland/rasqal/rasqal-aix.patch.1 | |
parent | Initial commit. (diff) | |
download | libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | external/redland/rasqal/rasqal-aix.patch.1 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/external/redland/rasqal/rasqal-aix.patch.1 b/external/redland/rasqal/rasqal-aix.patch.1 new file mode 100644 index 000000000..d755aa2e5 --- /dev/null +++ b/external/redland/rasqal/rasqal-aix.patch.1 @@ -0,0 +1,25 @@ +--- a/src/rasqal_literal.c 2013-03-29 21:22:57.413852072 +0100 ++++ b/src/rasqal_literal.c 2013-03-29 21:23:34.092851757 +0100 +@@ -46,10 +46,22 @@ + #include <stddef.h> + #endif + #include <stdarg.h> ++#ifdef _AIX ++# ifndef isnan ++# define isnan(x) \ ++ (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ ++ : sizeof (x) == sizeof (double) ? isnan_d (x) \ ++ : isnan_f (x)) ++ static inline int isnan_f (float x) { return x != x; } ++ static inline int isnan_d (double x) { return x != x; } ++ static inline int isnan_ld (long double x) { return x != x; } ++# endif ++#else + /* for isnan() */ + #ifdef HAVE_MATH_H + #include <math.h> + #endif ++#endif + /* for INT_MIN and INT_MAX */ + #ifdef HAVE_LIMITS_H + #include <limits.h> |