#undef inline before testing whether it works to avoid false positives.

2001-07-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: #undef inline before testing whether it works to
	avoid false positives. Patch from Garry R. Osgood
	<grosgood@rcn.com>. Fixes bug #58272.
This commit is contained in:
Sebastian Wilhelmi
2001-07-30 09:02:37 +00:00
committed by Sebastian Wilhelmi
parent a3ad2d5774
commit 548ac42ad8
9 changed files with 41 additions and 8 deletions

View File

@@ -372,6 +372,7 @@ xyes) AC_DEFINE(G_HAVE___INLINE__,1,[Have __inline__ keyword])
esac
AC_CACHE_CHECK([for inline], glib_cv_hasinline,[
AC_TRY_RUN([
#undef inline
inline int foo () { return 0; }
int main () { return foo (); }
],