mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
#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:
committed by
Sebastian Wilhelmi
parent
a3ad2d5774
commit
548ac42ad8
@@ -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 (); }
|
||||
],
|
||||
|
Reference in New Issue
Block a user