From: Carl Worth Date: Mon, 19 Oct 2009 20:06:55 +0000 (-0700) Subject: date.c: Change headers/defines t owork within notmuch. X-Git-Tag: 0.1~837 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f638fbf8d6c5c3dada648edf974a410c3ca7ace5;p=notmuch.git date.c: Change headers/defines t owork within notmuch. 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. --- diff --git a/date.c b/date.c index c6cbd813..0f217e44 100644 --- a/date.c +++ b/date.c @@ -23,54 +23,17 @@ * some glib-isms. */ -#ifdef HAVE_CONFIG_H -#include -#endif - -#define _GNU_SOURCE +#include "notmuch-private.h" -#include +#include -#include -#include -#include -#ifdef HAVE_SYS_PARAM_H -#include /* for MAXHOSTNAMELEN */ -#else -#define MAXHOSTNAMELEN 64 -#endif -#ifdef HAVE_UTSNAME_DOMAINNAME -#include /* for uname() */ +#ifndef FALSE +#define FALSE 0 #endif -#include -#ifdef HAVE_UNISTD_H -#include /* Unix header for getpid() */ -#endif -#ifdef G_OS_WIN32 -#include -#include -#include -#define getpid() _getpid() -#endif -#ifdef HAVE_NETDB_H -#include + +#ifndef TRUE +#define TRUE 1 #endif -#include -#include - -#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)