diff options
author | David Seifert <soap@gentoo.org> | 2016-10-14 22:46:01 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-10-14 23:29:13 +0200 |
commit | ece2cf67ac87c152c955189229cd3a2b2206e0a9 (patch) | |
tree | eee6f7c096b46fbed33954f1f859c8cb0f28f265 /media-libs/jasper/files | |
parent | media-libs/jasper: Fix overlong DESCRIPTION (diff) | |
download | gentoo-ece2cf67ac87c152c955189229cd3a2b2206e0a9.tar.gz gentoo-ece2cf67ac87c152c955189229cd3a2b2206e0a9.tar.bz2 gentoo-ece2cf67ac87c152c955189229cd3a2b2206e0a9.zip |
media-libs/jasper: Version bump to 1.900.3
Gentoo-bug: 513240
* EAPI=6
* Import latest Fedora patchset
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-libs/jasper/files')
-rw-r--r-- | media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch b/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch new file mode 100644 index 000000000000..08764ec5e51e --- /dev/null +++ b/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch @@ -0,0 +1,47 @@ +Remove undefining of true/false macros, this is not 1998. +See also: https://bugs.gentoo.org/show_bug.cgi?id=513240 + +--- a/src/libjasper/include/jasper/jas_types.h ++++ b/src/libjasper/include/jasper/jas_types.h +@@ -93,8 +93,6 @@ + #endif + + #if defined(HAVE_STDLIB_H) +-#undef false +-#undef true + #include <stdlib.h> + #endif + #if defined(HAVE_STDDEF_H) +@@ -104,32 +102,11 @@ + #include <sys/types.h> + #endif + +-#ifndef __cplusplus +-#if defined(HAVE_STDBOOL_H) + /* + * The C language implementation does correctly provide the standard header + * file "stdbool.h". + */ + #include <stdbool.h> +-#else +- +-/* +- * The C language implementation does not provide the standard header file +- * "stdbool.h" as required by ISO/IEC 9899:1999. Try to compensate for this +- * braindamage below. +- */ +-#if !defined(bool) +-#define bool int +-#endif +-#if !defined(true) +-#define true 1 +-#endif +-#if !defined(false) +-#define false 0 +-#endif +-#endif +- +-#endif + + #if defined(HAVE_STDINT_H) + /* |