adium.1-4: 267c6165: Downgrade to pidgin-facebookchat at r646...
zacw at adiumx.com
zacw at adiumx.com
Fri Aug 21 16:11:52 EDT 2009
-----------------------------------------------------------------
Revision: 267c6165e02e34318a1823960bd04c0639952f73
Ancestor: 23cc9cb7bd97b596706c5d37a73b034328cb6ed1
Author: zacw at adiumx.com
Date: 2009-08-21T20:09:22
Branch: im.pidgin.adium.1-4
URL: http://d.pidgin.im/viewmtn/revision/info/267c6165e02e34318a1823960bd04c0639952f73
Modified files:
libpurple/protocols/facebook/fb_util.c
ChangeLog:
Downgrade to pidgin-facebookchat at r646 since r647 won't compile.
-------------- next part --------------
============================================================
--- libpurple/protocols/facebook/fb_util.c bf2bb95104968587af70443bf50a423a9e63ce67
+++ libpurple/protocols/facebook/fb_util.c 8ddff7af209527eb1c9a4c04c27ddccf0d3a01b0
@@ -112,43 +112,9 @@ gchar *fb_strdup_withhtml(const gchar *s
return dest;
}
-static gboolean is_json_64bit_safe()
+gint64 fb_time_kludge(gint initial_time)
{
- //Cache the result to try make this function quick
- static gint result = -1;
-
- if (result == 1)
- return TRUE;
- if (result == 0)
- return FALSE;
-
if (sizeof(gint) >= sizeof(gint64))
- {
- result = 1;
- return TRUE;
- }
-
-#ifndef USE_JSONC
- JsonNode *node;
- GType type;
-
- node = json_node_new(NSON_NODE_VALUE);
- json_node_set_int(node, 1);
- type = json_node_get_value_type(node);
- if (G_VALUE_TYPE(type) == G_TYPE_INT64)
- {
- result = 1;
- return TRUE;
- }
-#endif /* !USE_JSONC */
-
- result = 0;
- return FALSE;
-}
-
-gint64 fb_time_kludge(gint64 initial_time)
-{
- if (is_json_64bit_safe())
return initial_time;
gint64 now_millis = (gint64) time(NULL);
More information about the Commits
mailing list