chiark / gitweb /
journal: avoid re-definition of enums for older gcc versions
authorKay Sievers <kay@vrfy.org>
Sun, 15 Jul 2012 12:56:57 +0000 (14:56 +0200)
committerKay Sievers <kay@vrfy.org>
Sun, 15 Jul 2012 12:56:57 +0000 (14:56 +0200)
On Sun, Jul 15, 2012 at 2:00 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> | In file included from src/journal/sd-journal.c:37:0:
> | src/journal/journal-internal.h:47:3: error: redefinition of typedef 'MatchType'
> | src/journal/journal-internal.h:36:24: note: previous declaration of 'MatchType' was here
> | src/journal/journal-internal.h:67:3: error: redefinition of typedef 'LocationType'
> | src/journal/journal-internal.h:37:27: note: previous declaration of 'LocationType' was here

src/journal/journal-internal.h

index 482ef61b9ab0410b3086c14d9443d0e20d7f76a5..64d05f0e1ef7d861db79bf9ab436fd882f73e4d0 100644 (file)
@@ -33,9 +33,6 @@
 #include "hashmap.h"
 #include "journal-file.h"
 
-typedef enum MatchType MatchType;
-typedef enum LocationType LocationType;
-
 typedef struct Match Match;
 typedef struct Location Location;
 typedef struct Directory Directory;