slackware-current/source/l/gd/gd.f4bc1f5c26925548662946ed7cfa473c190a104a.patch
Patrick J Volkerding 31debcee0b Sun Sep 19 18:57:24 UTC 2021
a/kernel-firmware-20210919_d526e04-noarch-1.txz:  Upgraded.
l/gd-2.3.3-x86_64-2.txz:  Rebuilt.
  Applied upstream patch to restore macros used while building PHP.
  Thanks to nobodino.
l/gjs-1.68.4-x86_64-1.txz:  Upgraded.
l/imagemagick-7.1.0_8-x86_64-1.txz:  Upgraded.
l/python-charset-normalizer-2.0.6-x86_64-1.txz:  Upgraded.
xfce/xfce4-whiskermenu-plugin-2.6.0-x86_64-1.txz:  Upgraded.
2021-09-20 08:59:58 +02:00

28 lines
825 B
Diff

From f4bc1f5c26925548662946ed7cfa473c190a104a Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 13 Sep 2021 14:57:52 +0200
Subject: [PATCH] Revert "Fix #318, these macros are not used as planed, we
have separate functions for each"
This reverts commit bdc281eadb1d58d5c0c7bbc1125ee4674256df08.
---
src/gd.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gd.h b/src/gd.h
index 30560395..1ad9e637 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -1604,6 +1604,11 @@ BGD_DECLARE(void) gdImageFlipHorizontal(gdImagePtr im);
BGD_DECLARE(void) gdImageFlipVertical(gdImagePtr im);
BGD_DECLARE(void) gdImageFlipBoth(gdImagePtr im);
+#define GD_FLIP_HORINZONTAL 1 /* typo, kept for BC */
+#define GD_FLIP_HORIZONTAL 1
+#define GD_FLIP_VERTICAL 2
+#define GD_FLIP_BOTH 3
+
/**
* Group: Crop
*