From 717d729dcbcd06f396b170d9d4c08f76d390f89d 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(-) diff --git a/sub/osd.h b/sub/osd.h index 17e8a02c08..c79707e0f5 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