gentoo-ebuilds/media-libs/x265/files/x265-3.6-code-cleanup_2.patch
Paul Zander 72f38bc8bf
media-libs/x265: splitup 3.6 code cleanup patch
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44229
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-19 19:02:20 +01:00

23 lines
675 B
Diff

From 4ec09af244e2cfe3dfb739d74af7640ac114e775 Mon Sep 17 00:00:00 2001
From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Mon, 26 Aug 2024 14:45:33 +0200
Subject: [PATCH 3/4] register is a unused and reserved keyword in c++-17
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
diff --git a/common/md5.cpp b/common/md5.cpp
index a9042f4..7e638e7 100644
--- a/common/md5.cpp
+++ b/common/md5.cpp
@@ -185,7 +185,10 @@ void MD5Final(MD5Context *ctx, uint8_t *digest)
*/
void MD5Transform(uint32_t *buf, uint32_t *in)
{
- register uint32_t a, b, c, d;
+#if __cplusplus < 201703L
+ register
+#endif
+ uint32_t a, b, c, d;
a = buf[0];
b = buf[1];