diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
commit | 129160ec854dca4c3fedb5bcfbcb56930371da0f (patch) | |
tree | 53bf797418ac5e9b99c41ca0382c87b82421e5de /dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch | |
parent | 441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff) |
gentoo new year resync : 01.01.2021
Diffstat (limited to 'dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch')
-rw-r--r-- | dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch b/dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch new file mode 100644 index 000000000000..9d6d9ae2bca5 --- /dev/null +++ b/dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch @@ -0,0 +1,15 @@ +--- a/src/definitions.h ++++ b/src/definitions.h +@@ -43,11 +43,11 @@ + + /*==== Misc definitions ====*/ + /* Define a bool type if not already defined (C++ and C99 do)*/ +-#if !(defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 19990601L)) ++#if !(defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) + /*@-incondefs@*/ + typedef enum {false, true} bool; + /*@+incondefs@*/ +-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 19990601L ++#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #include <stdbool.h> + #endif |