diff --git a/Examples/GIFPlot/Interface/gifplot.i b/Examples/GIFPlot/Interface/gifplot.i index b8f17f657..69a7cdbb9 100644 --- a/Examples/GIFPlot/Interface/gifplot.i +++ b/Examples/GIFPlot/Interface/gifplot.i @@ -261,9 +261,12 @@ typedef struct Plot3D { } Plot3D; #ifndef SWIGJAVA -const PixMap *SQUARE = &PixMap_SQUARE; -const PixMap *TRIANGLE = &PixMap_TRIANGLE; -const PixMap *CROSS = &PixMap_CROSS; +/* These directives create constants of a specific type. They + do not correspond to any C variable or declared constant in the + header file */ +%constant(PixMap *) SQUARE = &PixMap_SQUARE; +%constant(PixMap *) TRIANGLE = &PixMap_TRIANGLE; +%constant(PixMap *) CROSS = &PixMap_CROSS; #endif %enabledoc