ObjFW  Check-in [ea080ec7ac]

Overview
Comment:configure: Check for SSIZE_MAX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ea080ec7ac75188a2784dd02b9c279d61740e29cdd75850e4cd12b8549bf60b2
User & Date: js on 2015-05-14 09:32:39
Other Links: manifest | tags
Context
2015-05-14
09:34
OFException.m: Fix missing includes check-in: dddeff64f8 user: js tags: trunk
09:32
configure: Check for SSIZE_MAX check-in: ea080ec7ac user: js tags: trunk
09:10
initWithContentsOfURL: Require files or sockets check-in: dbe286c39f user: js tags: trunk
Changes

Modified configure.ac from [d87836b9cb] to [f016f582af].

400
401
402
403
404
405
406















407
408
409
410
411
412
413
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







		AC_MSG_RESULT(yes)
		size_max="SIZE_T_MAX"
	], [
		AC_MSG_RESULT(no)
		size_max="(~(size_t)0)"
	])
	AC_DEFINE_UNQUOTED(SIZE_MAX, $size_max, [Maximum value for size_t])
])
AC_MSG_CHECKING(for SSIZE_MAX)
AC_EGREP_CPP(yes, [
	#include <stdint.h>
	#include <limits.h>

	#ifdef SSIZE_MAX
	yes
	#endif
], [
	AC_MSG_RESULT(yes)
], [
	AC_MSG_RESULT(no)
	AC_DEFINE(SSIZE_MAX, [((ssize_t)(SIZE_MAX / 2))],
		[Maximum value for ssize_t])
])

AC_CHECK_TYPE(max_align_t,
	[AC_DEFINE(OF_HAVE_MAX_ALIGN_T, 1, [Whether we have max_align_t])])

AC_CHECK_HEADER(stdnoreturn.h,
	[AC_DEFINE(OF_HAVE_STDNORETURN_H, 1, [Whether we have stdnoreturn.h])])