summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-26 16:02:49 +0200
committerwm4 <wm4@nowhere>2014-04-26 16:04:09 +0200
commit75d7d87e1b43424572a5a441a9132e49d82ce8c6 (patch)
tree1634ac2a57dc9f6ddc330a08e3c8f22f5629306f /sub
parenta5282e3a69bd2aa4d7554fcf40a8b1ef1c76d5f1 (diff)
downloadmpv-75d7d87e1b43424572a5a441a9132e49d82ce8c6.tar.bz2
mpv-75d7d87e1b43424572a5a441a9132e49d82ce8c6.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.
Diffstat (limited to 'sub')
-rw-r--r--sub/osd.h8
1 files changed, 3 insertions, 5 deletions
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 {