From 75d7d87e1b43424572a5a441a9132e49d82ce8c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Apr 2014 16:02:49 +0200 Subject: osd: make code C99 This used an unnamed union, which is allowed in GNU C and C11, but not C99. This broke the build with some older compilers. Replaces pull request #744. --- sub/osd.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sub') diff --git a/sub/osd.h b/sub/osd.h index 048256bb92..d79f55ae3d 100644 --- a/sub/osd.h +++ b/sub/osd.h @@ -52,11 +52,9 @@ struct sub_bitmap { int x, y; int dw, dh; - union { - struct { - uint32_t color; - } libass; - }; + struct { + uint32_t color; + } libass; }; struct sub_bitmaps { -- cgit v1.2.3