From cf42fd8e6e8d89cfa85b5dbc6dbd1d22c7eccafb Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Wed, 31 Oct 2012 11:21:57 +0000 Subject: [PATCH] fix unnamed struct in unions issue. git-svn-id: http://root.cern.ch/svn/root/trunk@46925 27541ba8-7e3a-0410-8455-c3a389f83636 --- graf2d/mathtext/inc/mathrender.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/graf2d/mathtext/inc/mathrender.h b/graf2d/mathtext/inc/mathrender.h index aa4fdf87d2e..fb314319bbb 100644 --- a/graf2d/mathtext/inc/mathrender.h +++ b/graf2d/mathtext/inc/mathrender.h @@ -631,13 +631,14 @@ namespace mathtext { public: point_t _offset; bounding_box_t _bounding_box; + struct extension_t { + wchar_t _glyph; + unsigned int _family; + float _size; + }; union { unsigned int _style; - struct { - wchar_t _glyph; - unsigned int _family; - float _size; - } _extensible; + extension_t _extensible; }; float _delimiter_height; inline math_token_t( -- GitLab