ObjFW  Check-in [8c712272d2]

Overview
Comment:configure: Define _GNU_SOURCE for newlib
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8c712272d2b30e40bb891d9248831a02da87472a4d86b71f0e3f5c2fc0dc1624
User & Date: js on 2017-03-12 01:37:51
Other Links: manifest | tags
Context
2017-03-12
01:42
Define select() to net_select() on Wii check-in: 0ce4eeb439 user: js tags: trunk
01:37
configure: Define _GNU_SOURCE for newlib check-in: 8c712272d2 user: js tags: trunk
01:33
Fix using asprintf_l check-in: df2ee1f2f9 user: js tags: trunk
Changes

Modified configure.ac from [6c231caadc] to [80cb38af8d].

238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
	AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support])
])

AC_MSG_CHECKING(whether we need -D_GNU_SOURCE)
AC_EGREP_CPP(yes, [
	#include <stdlib.h>

	#if defined(__GLIBC__) || defined(__MINGW32__)
	yes
	#endif
], [
	CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
	AC_MSG_RESULT(yes)
], [
	AC_MSG_RESULT(no)







|







238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
	AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support])
])

AC_MSG_CHECKING(whether we need -D_GNU_SOURCE)
AC_EGREP_CPP(yes, [
	#include <stdlib.h>

	#if defined(__GLIBC__) || defined(__MINGW32__) || defined(__NEWLIB__)
	yes
	#endif
], [
	CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
	AC_MSG_RESULT(yes)
], [
	AC_MSG_RESULT(no)