]> www.ginac.de Git - cln.git/commitdiff
Fix configury (intptr_t test) for cross-compilation.
authorRichard Kreckel <kreckel@ginac.de>
Sun, 11 Oct 2020 10:20:44 +0000 (12:20 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 11 Oct 2020 10:25:53 +0000 (12:25 +0200)
Reported by Helmut Grohne <helmut@subdivi.de> (cf. Debian bug#971939).

m4/intparam.m4

index 7782fc5098b60779c5e91c564d89e5a6bfc319ad..3c990d77d2a5d6f3dfa3701f9dc48096d7493d74 100644 (file)
@@ -113,7 +113,7 @@ AC_DEFUN([CL_INTPARAM_CROSS],
         echo "#error \"Integer types long long and unsigned long long have different sizes!!\""
       fi
     fi
-    AC_TRY_COMPILE([], [static_assert(sizeof(char*) <= sizeof(intptr_t), "");],
+    AC_TRY_COMPILE([#include <stdint.h>], [static_assert(sizeof(char*) <= sizeof(intptr_t), "");],
       [], [echo "#error \"Type char * does not fit into an intptr_t!!\""])
     _AC_COMPUTE_INT([sizeof (char *)], [pointer_size])
     pointer_bitsize=`expr $pointer_size '*' $char_bitsize`