From d1ed9c8399421eb511d7d7bb1e75d926d596d78a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 12 Oct 2009 23:00:06 +0200 Subject: [PATCH] fix compiling in a messy way A cleaner but more ugly solution would be to include text_object.h in every header containing struct text_object definitions. But this apparently triggers a big mess, since text_object.h itself includes custom headers. Forward defining struct text_object is obviously the mostly simple solution until there is a bigger header include review cleaning it all up. --- src/conky.h | 3 +++ src/eve.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conky.h b/src/conky.h index 758683e1..aa89b9af 100644 --- a/src/conky.h +++ b/src/conky.h @@ -63,6 +63,9 @@ char *strndup(const char *s, size_t n); * in every code file optionally using the feature */ +/* forward define to make gcc happy */ +struct text_object; + #ifdef AUDACIOUS #include "audacious.h" #endif diff --git a/src/eve.h b/src/eve.h index 8f144db4..1c5bbd25 100644 --- a/src/eve.h +++ b/src/eve.h @@ -24,8 +24,6 @@ #ifndef _EVE_H #define _EVE_H -struct text_object; - void scan_eve(struct text_object *, const char *); void print_eve(struct text_object *, char *, int);