diff options
author | Chris Robinson <[email protected]> | 2012-02-07 08:05:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-07 08:05:01 -0800 |
commit | a98e381c8e1406ec36a4f774fa418c3c17a1fd78 (patch) | |
tree | 851fb90a9ec3a18a37515d7217650e5c25e5d2c9 /OpenAL32/alBuffer.c | |
parent | 18f87b97d59c4d5134f4e77c72c76450a54b666e (diff) |
Ensure ALbyte3 and ALubyte3 are the proper size
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index b7f034be..2d75a24e 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1068,9 +1068,11 @@ typedef ALubyte ALima4; typedef struct { ALbyte b[3]; } ALbyte3; +extern ALbyte ALbyte3_size_is_not_3[(sizeof(ALbyte3)==sizeof(ALbyte[3]))?1:-1]; typedef struct { ALubyte b[3]; } ALubyte3; +extern ALbyte ALubyte3_size_is_not_3[(sizeof(ALubyte3)==sizeof(ALubyte[3]))?1:-1]; static __inline ALshort DecodeMuLaw(ALmulaw val) { return muLawDecompressionTable[val]; } |