Changeset 4027


Ignore:
Timestamp:
Dec 1, 2007, 2:52:13 AM (14 years ago)
Author:
charles
Message:

glib < 2.8 portability fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/conf.c

    r4026 r4027  
    256256***/
    257257
     258#if !GLIB_CHECK_VERSION(2,8,0)
     259static void
     260tr_file_set_contents( const char * filename, const void * out, size_t len, GError* unused UNUSED )
     261{
     262    FILE * fp = fopen( filename, "wb+" );
     263    if( fp != NULL ) {
     264        fwrite( out, 1, len, fp );
     265        fclose( fp );
     266    }
     267}
     268#define g_file_set_contents tr_file_set_contents
     269#endif
     270
    258271static char*
    259272getCompat08PrefsFilename( void )
Note: See TracChangeset for help on using the changeset viewer.