Remove duplicate typedefs
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 20 Jun 2012 08:13:11 +0000 (09:13 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 20 Jun 2012 08:13:11 +0000 (09:13 +0100)
Redefining typedefs is allowed by C11 and by a GCC extension, but Clang
doesn't really like it.

clutter/clutter-types.h
clutter/deprecated/clutter-animation.h

index cd31e9b..89f201f 100644 (file)
@@ -89,8 +89,6 @@ typedef struct _ClutterAlpha                  ClutterAlpha;
 typedef struct _ClutterAnimation                ClutterAnimation;
 typedef struct _ClutterAnimator                ClutterAnimator;
 typedef struct _ClutterState                   ClutterState;
-typedef struct _ClutterBehaviour                ClutterBehaviour;
-typedef struct _ClutterShader                   ClutterShader;
 
 typedef union _ClutterEvent                     ClutterEvent;
 
index fec7e6e..4c6aa8b 100644 (file)
@@ -40,7 +40,6 @@ G_BEGIN_DECLS
 #define CLUTTER_IS_ANIMATION_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_ANIMATION))
 #define CLUTTER_ANIMATION_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_ANIMATION, ClutterAnimationClass))
 
-typedef struct _ClutterAnimation                ClutterAnimation;
 typedef struct _ClutterAnimationPrivate         ClutterAnimationPrivate;
 typedef struct _ClutterAnimationClass           ClutterAnimationClass;