Mercurial > pidgin
diff src/log.c @ 13992:0567de116699
[gaim-migrate @ 16566]
Having value.h include config.h is bad. It caused plenty of warnings building my plugins, for example.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 25 Jul 2006 01:25:04 +0000 |
parents | f94309c7c480 |
children | 626977ae8869 |
line wrap: on
line diff
--- a/src/log.c Mon Jul 24 23:57:11 2006 +0000 +++ b/src/log.c Tue Jul 25 01:25:04 2006 +0000 @@ -604,7 +604,13 @@ gaim_value_new(GAIM_TYPE_POINTER), 2, gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_LOG), - gaim_value_new(GAIM_TYPE_TIME_T)); +#if SIZEOF_TIME_T == 4 + gaim_value_new(GAIM_TYPE_INT)); +#elif SIZE_OF_TIME_T == 8 + gaim_value_new(GAIM_TYPE_INT64)); +#else +# error Unknown size of time_t +#endif gaim_prefs_connect_callback(NULL, "/core/logging/format", logger_pref_cb, NULL);