balsa r8080 - in trunk: . libbalsa
- From: pawels svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r8080 - in trunk: . libbalsa
- Date: Mon, 16 Feb 2009 20:47:49 +0000 (UTC)
Author: pawels
Date: Mon Feb 16 20:47:49 2009
New Revision: 8080
URL: http://svn.gnome.org/viewvc/balsa?rev=8080&view=rev
Log:
* configure.in: detect the *time_r function declarations.
* libbalsa/missing.h: HAVE_DECL_*TIME_R is always defined to a value.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/libbalsa/missing.h
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Mon Feb 16 20:47:49 2009
@@ -849,6 +849,7 @@
AC_STDC_HEADERS
AC_DEFINE([_XOPEN_SOURCE],[500],[We strive for XOPEN compliance])
+AC_CHECK_DECLS([localtime_r, gmtime_r, ctime_r], [], [], [[#include <time.h>]])
AC_CHECK_FUNCS([localtime_r gmtime_r ctime_r])
# more warnings.
Modified: trunk/libbalsa/missing.h
==============================================================================
--- trunk/libbalsa/missing.h (original)
+++ trunk/libbalsa/missing.h Mon Feb 16 20:47:49 2009
@@ -25,15 +25,15 @@
#include <time.h>
-#ifndef HAVE_CTIME_R
+#if (HAVE_DECL_CTIME_R == 0)
char * ctime_r(const time_t *clock, char *buf);
#endif
-#ifndef HAVE_LOCALTIME_R
+#if (HAVE_DECL_LOCALTIME_R == 0)
struct tm * localtime_r(const time_t *clock, struct tm *result);
#endif
-#ifndef HAVE_GMTIME_R
+#if (HAVE_DECL_GMTIME_R == 0)
struct tm * gmtime_r(const time_t *clock, struct tm *result);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]