X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=date.c;h=f169d6167ecde5260c1575edf5b728eee96527fb;hb=9f3649370cefe3d4a28b0df7cb3fea32ded9251a;hp=c6cbd813c444e770bfda2b51c89701417d96600d;hpb=e26a2bf48bea7de68fa421c96330928dce07de39;p=notmuch diff --git a/date.c b/date.c index c6cbd813..f169d616 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) @@ -112,7 +75,7 @@ static unsigned char gmime_datetok_table[256] = { 111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111, }; -/* hrm, is there a library for this shit? */ +/* hrm, is there a library for this stuff? */ static struct { char *name; int offset;