diff options
author | wm4 <wm4@nowhere> | 2014-04-26 16:02:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-30 11:45:31 +0200 |
commit | 717d729dcbcd06f396b170d9d4c08f76d390f89d (patch) | |
tree | da53ea7dc2c0131ea00ff4ad0ea505e8a0c729ce | |
parent | 4eb5b62e5a49051ff87a75e3202a491adc4b6d40 (diff) | |
download | mpv-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.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 { |