summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/m4/nvhpc-long-width.patch
blob: 1dceb3a0342bdc3f706c902b545812ab04c94de8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/lib/regex_internal.h
+++ b/lib/regex_internal.h
@@ -39,6 +39,14 @@
 #include <intprops.h>
 #include <verify.h>
 
+#ifndef __LONG_WIDTH__
+#if LONG_WIDTH
+#define __LONG_WIDTH__ LONG_WIDTH
+#else
+#define __LONG_WIDTH__ __WORDSIZE
+#endif
+#endif
+
 #if defined DEBUG && DEBUG != 0
 # include <assert.h>
 # define DEBUG_ASSERT(x) assert (x)