Index: poppler/GfxState.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/GfxState.cc,v retrieving revision 1.13 diff -u -r1.13 GfxState.cc --- poppler/GfxState.cc 16 Jul 2006 18:22:23 -0000 1.13 +++ poppler/GfxState.cc 30 Jul 2006 10:24:01 -0000 @@ -62,10 +62,12 @@ //------------------------------------------------------------------------ -static struct { - char *name; - GfxBlendMode mode; -} gfxBlendModeNames[] = { +struct gfxBlendModeName { + char *name; + GfxBlendMode mode; +}; + +static gfxBlendModeName gfxBlendModeNames[] = { { "Normal", gfxBlendNormal }, { "Compatible", gfxBlendNormal }, { "Multiply", gfxBlendMultiply }, @@ -86,7 +88,7 @@ }; #define nGfxBlendModeNames \ - ((int)((sizeof(gfxBlendModeNames) / sizeof(char *)))) + ((int)((sizeof(gfxBlendModeNames) / sizeof(gfxBlendModeName)))) //------------------------------------------------------------------------ //