s/time_t/GTime/ and s/g_print/g_message/ include time.h.

Wed Dec  2 02:10:59 1998  Tim Janik  <timj@gtk.org>

        * gdate.c: s/time_t/GTime/ and s/g_print/g_message/
        include time.h.

        * glib.h: removed #include <time.h>, changed time_t paramter of
        g_date_set_time() to time_t, changed struct tm parameter of
        g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
        nice, but including time.h actually breaks a bunch of code.
This commit is contained in:
Tim Janik
1998-12-02 02:24:14 +00:00
committed by Tim Janik
parent a3e59c3ebf
commit 2886be294a
13 changed files with 523 additions and 419 deletions

6
glib.h
View File

@@ -2039,8 +2039,6 @@ void g_completion_free (GCompletion* cmp);
* Pennington <hp@pobox.com>
*/
#include <time.h>
/* this enum is used to specify order of appearance in parsed date
* strings
*/
@@ -2172,7 +2170,7 @@ void g_date_set_parse (GDate *d,
const gchar *str);
void g_date_set_time (GDate *d,
time_t t);
GTime time);
void g_date_set_month (GDate *d,
GDateMonth m);
@@ -2222,7 +2220,7 @@ gint g_date_compare (GDate *lhs,
void g_date_to_struct_tm (GDate *d,
struct tm *tm);
gpointer struct_tm_p);
/* Just like strftime() except you can only use date-related formats.
* Using a time format is undefined.