babl.h: reorder BablModelFlag typedef and enum for C++ compatibility
authorØyvind Kolås <pippin@gimp.org>
Mon, 26 Nov 2018 23:42:45 +0000 (00:42 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 26 Nov 2018 23:42:45 +0000 (00:42 +0100)
babl/babl.h

index 93cb6157c3896cca8a07275b0aea4fe29969d677..43d1a35ee9cdcb0e74f8030a1629372173abab9b 100644 (file)
@@ -285,7 +285,6 @@ const Babl * babl_format_get_model             (const Babl *format);
 
 
 
-typedef enum _BablModelFlag BablModelFlag;
 
 enum _BablModelFlag
 {
@@ -303,6 +302,8 @@ enum _BablModelFlag
   BABL_MODEL_FLAG_PERCEPTUAL    = 1<<10,
 };
 
+typedef enum _BablModelFlag BablModelFlag;
+
 /* linear, nonlinear and perceptual could occupy two bits with a decidated 0,
  * but we do not have a lack of bits in this bit pattern so leave it be.
  */