Changeset 1410

Show
Ignore:
Timestamp:
10/13/06 18:59:57 (2 years ago)
Author:
cstender
Message:

use deprecated g_date_set_time() for glib2 < 2.10

Location:
plugins/opie-sync
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/opie-sync/configure.ac

    r1407 r1410  
    4747AC_SUBST(OPENSYNC_HEADERDIR) ## Here are the headers that a user interface may need (if any) 
    4848 
     49#### check for glib2-devel >= 2.10 #### 
     50pkg-config --atleast-version=2.10 glib-2.0 && AC_DEFINE([NEW_GLIB_VER],1,[Define to 1 if glib2-devel >= 2.10]) 
     51 
    4952AC_OUTPUT([ 
    5053Makefile 
  • plugins/opie-sync/src/opie_format.c

    r1306 r1410  
    2626#include "opie_xml.h" 
    2727#include "opie_format.h" 
     28#include "config.h" 
    2829 
    2930#include <opensync/opensync-xml.h> 
     
    10681069                                        /* Record the start date for use later */ 
    10691070                                        startdate = g_date_new(); 
     1071#ifdef NEW_GLIB_VER 
    10701072                                        g_date_set_time_t(startdate, starttime); 
     1073#else 
     1074                                        /* This is deprecated */ 
     1075                                        GTime g_starttime = (GTime)starttime;                                    
     1076                                        g_date_set_time(startdate, g_starttime); 
     1077#endif /* NEW_GLIB_VER */ 
    10711078                                } 
    10721079                                else if(!strcasecmp(iprop->name, "end"))