xmlsec1/fix-size_max-412.patch.1
2022-10-27 09:31:28 +01:00

32 lines
709 B
Groff

From 3445fbfe1aceb88a255b90ee1c06df2d05c188b0 Mon Sep 17 00:00:00 2001
From: lsh123 <aleksey@aleksey.com>
Date: Mon, 24 Oct 2022 17:38:59 -0700
Subject: [PATCH] fix size_max (#412)
---
src/cast_helpers.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/cast_helpers.h b/src/cast_helpers.h
index 67330822..2b670ad1 100644
--- a/src/cast_helpers.h
+++ b/src/cast_helpers.h
@@ -17,13 +17,9 @@
#endif /* XMLSEC_PRIVATE */
#include <limits.h>
+#include <stdint.h>
#include "errors_helpers.h"
-/* if it is missing */
-#ifndef SIZE_MAX
-#define SIZE_MAX (~(size_t)0)
-#endif /* SIZE_MAX */
-
/**
* Helpers for printing out enum values (mostly debugging).
*/
--
2.38.0.rc2