+2003-06-29 Miloslav Trmac <mitr@volny.cz>
+
+ * dbus/dbus-mainloop.c (_dbus_loop_remove_watch)
+ (_dbus_loop_remove_timeout): Cast function pointers to (void *) for %p
+
+ * configure.in: Add -D_POSIX_C_SOURCE=199309L -DBSD_SOURCE to CFLAGS
+ and disable DBUS_USE_ATOMIC_INT_486 when --enable-ansi is used
+
2003-06-24 Havoc Pennington <hp@pobox.com>
* mono/*.cs: Use IntPtr.Zero instead of ((IntPtr) 0)
*) CFLAGS="$CFLAGS -ansi" ;;
esac
+ case " $CFLAGS " in
+ *[\ \ ]-D_POSIX_C_SOURCE*) ;;
+ *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
+ esac
+
case " $CFLAGS " in
*[\ \ ]-pedantic[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -pedantic" ;;
AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
have_atomic_inc=no
if test x"$GCC" = xyes; then
- case $host_cpu in
- i386)
- AC_MSG_RESULT([no])
- ;;
- i?86)
- AC_MSG_RESULT([i486])
- AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
- have_atomic_inc=yes
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
+ if test "x$enable_ansi" = "xyes"; then
+ AC_MSG_RESULT([no])
+ else
+ case $host_cpu in
+ i386)
+ AC_MSG_RESULT([no])
+ ;;
+ i?86)
+ AC_MSG_RESULT([i486])
+ AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
+ have_atomic_inc=yes
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+ fi
fi
if test x$have_atomic_inc = xyes ; then
AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
}
_dbus_warn ("could not find watch %p function %p data %p to remove\n",
- watch, function, data);
+ watch, (void *)function, data);
}
dbus_bool_t
}
_dbus_warn ("could not find timeout %p function %p data %p to remove\n",
- timeout, function, data);
+ timeout, (void *)function, data);
}
/* Convolutions from GLib, there really must be a better way