ObjFW  Check-in [c791f77d8c]

Overview
Comment:Work around OpenBSD defining I via GNU extension
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c791f77d8c2ec745a23f0a688576c79e20ec15aff75dd44529874762dc5de6d6
User & Date: js on 2017-12-27 15:44:34
Other Links: manifest | tags
Context
2017-12-27
20:40
of{http,zip}: Allow user database reading check-in: 904d0f429b user: js tags: trunk
15:44
Work around OpenBSD defining I via GNU extension check-in: c791f77d8c user: js tags: trunk
03:08
Work around OpenBSD 6.2 not linking the unwinder check-in: 58d916c643 user: js tags: trunk
Changes

Modified configure.ac from [a7b20bcede] to [3a3536d48e].

1518
1519
1520
1521
1522
1523
1524













1525
1526
1527
1528
1529
1530
1531
		], [], [
			AC_MSG_RESULT(no)
		], [
			AC_MSG_RESULT(yes)
			OBJCFLAGS="$old_OBJCFLAGS"
		])
	])













])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "${host_alias}-")

	case "$host" in
		*-*-mingw*)







>
>
>
>
>
>
>
>
>
>
>
>
>







1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
		], [], [
			AC_MSG_RESULT(no)
		], [
			AC_MSG_RESULT(yes)
			OBJCFLAGS="$old_OBJCFLAGS"
		])
	])

	AC_MSG_CHECKING(whether we need -Wno-gnu-imaginary-constant)
	AC_TRY_COMPILE([
		#include <complex.h>
	], [
		complex float f = 0.5 + 0.5 * I;
		(void)f;
	], [
		AC_MSG_RESULT(no)
	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$OBJCFLAGS -Wno-gnu-imaginary-constant"
	])
])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "${host_alias}-")

	case "$host" in
		*-*-mingw*)