]> git.notmuchmail.org Git - notmuch/commitdiff
date.c: Change headers/defines t owork within notmuch.
authorCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2009 20:06:55 +0000 (13:06 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2009 20:06:55 +0000 (13:06 -0700)
We can't rely on any gmime-internal headers, (and fortunately we
don't need to). We also aren't burdened with any autconf machinery
so don't reference any of that.

date.c

diff --git a/date.c b/date.c
index c6cbd813c444e770bfda2b51c89701417d96600d..0f217e44134b5567cbf401b32c7fdf0a48fd3d93 100644 (file)
--- a/date.c
+++ b/date.c
  * some glib-isms.
  */
 
  * some glib-isms.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _GNU_SOURCE
+#include "notmuch-private.h"
 
 
-#include <glib.h>
+#include <time.h>
 
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>      /* for MAXHOSTNAMELEN */
-#else
-#define MAXHOSTNAMELEN 64
-#endif
-#ifdef HAVE_UTSNAME_DOMAINNAME
-#include <sys/utsname.h>    /* for uname() */
+#ifndef FALSE
+#define FALSE 0
 #endif
 #endif
-#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>         /* Unix header for getpid() */
-#endif
-#ifdef G_OS_WIN32
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#include <process.h>
-#define getpid() _getpid()
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
+
+#ifndef TRUE
+#define TRUE 1
 #endif
 #endif
-#include <ctype.h>
-#include <errno.h>
-
-#include "gmime-utils.h"
-#include "gmime-table-private.h"
-#include "gmime-parse-utils.h"
-#include "gmime-part.h"
-#include "gmime-charset.h"
-#include "gmime-iconv.h"
-#include "gmime-iconv-utils.h"
-
-#ifdef ENABLE_WARNINGS
-#define w(x) x
-#else
-#define w(x)
-#endif /* ENABLE_WARNINGS */
 
 #define d(x)
 
 
 #define d(x)