shithub: npe

Download patch

ref: 2d624997f0429d6668b4af016508f994b53291bc
parent: 50628757b389926227a4955218979298fdc2cad3
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Aug 16 20:39:11 EDT 2023

define USHRT_MAX

--- a/include/npe/limits.h
+++ b/include/npe/limits.h
@@ -25,6 +25,10 @@
 #define SHRT_MAX 0x7fff
 #endif
 
+#ifndef USHRT_MAX
+#define USHRT_MAX 0xffff
+#endif
+
 #ifndef SHRT_MIN
 #define SHRT_MIN (-SHRT_MAX-1)
 #endif