chiark / gitweb /
unit: avoid re-definition of enum for older gcc versions
authorKay Sievers <kay@vrfy.org>
Sun, 15 Jul 2012 13:53:43 +0000 (15:53 +0200)
committerKay Sievers <kay@vrfy.org>
Sun, 15 Jul 2012 13:53:43 +0000 (15:53 +0200)
<koen> | ./src/shared/unit-name.h:29:23: error: redefinition of typedef 'UnitType'
<koen> | ./src/core/unit.h:30:23: note: previous declaration of 'UnitType' was here

src/core/unit.h

index 9d75e02..61a85d7 100644 (file)
@@ -27,7 +27,6 @@
 
 typedef struct Unit Unit;
 typedef struct UnitVTable UnitVTable;
-typedef enum UnitType UnitType;
 typedef enum UnitActiveState UnitActiveState;
 typedef enum UnitDependency UnitDependency;
 typedef struct UnitRef UnitRef;