summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-26 16:02:49 +0200
committerwm4 <wm4@nowhere>2014-04-30 11:45:31 +0200
commit717d729dcbcd06f396b170d9d4c08f76d390f89d (patch)
treeda53ea7dc2c0131ea00ff4ad0ea505e8a0c729ce
parent4eb5b62e5a49051ff87a75e3202a491adc4b6d40 (diff)
downloadmpv-717d729dcbcd06f396b170d9d4c08f76d390f89d.tar.bz2
mpv-717d729dcbcd06f396b170d9d4c08f76d390f89d.tar.xz
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.
-rw-r--r--sub/osd.h8
1 files 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 {