Add a check for the Darwin dynamic linker. Use AC_TRY_LINK when checking

* configure.in: Add a check for the Darwin dynamic linker. Use
        AC_TRY_LINK when checking for "nonposix getpwuid_r" so it notices
        "no getpwuid_r" correctly.

        * testglib.c (main): Make template[] bigger to prevent an overrun.
        Remove an unused variable. Initialize error to NULL.

        * tests/gio-test.c (main): Add a cast to prevent a warning when
        size_t is a long.

        * tests/type-test.c (main): Add an #ifdef to prevent a warning
        when G_HAVE_GINT64 is defined and G_GINT64_FORMAT isn't.
This commit is contained in:
Dan Winship
2001-04-20 17:08:57 +00:00
parent d7daf59800
commit 655d467602
13 changed files with 138 additions and 9 deletions

View File

@@ -52,9 +52,11 @@ main (int argc,
#ifdef G_HAVE_GINT64
guint64 gu64t1 = G_GINT64_CONSTANT(0x1d636b02300a7aa7U),
gu64t2 = G_GINT64_CONSTANT(0xa77a0a30026b631dU);
#ifdef G_GINT64_FORMAT
gint64 gi64t1;
gint64 gi64t2;
#endif
#endif /* G_GINT64_FORMAT */
#endif /* G_HAVE_GINT64 */
/* type sizes */
g_assert (sizeof (gint8) == 1);