Merge branch 'sdl_sound-test-program-compilation-with-gcc6' of https://github.com/mbunkus/mxe into mbunkus-sdl_sound-test-program-compilation-with-gcc6

This commit is contained in:
Tony Theodore 2017-07-25 17:23:25 +10:00
commit 8c1d61dc2e
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/SDL_sound.h b/SDL_sound.h
index b0b8c97..81c1446 100644
--- a/SDL_sound.h
+++ b/SDL_sound.h
@@ -114,7 +114,7 @@ typedef enum
/* these are set during decoding... */
SOUND_SAMPLEFLAG_EOF = 1 << 29, /**< End of input stream. */
SOUND_SAMPLEFLAG_ERROR = 1 << 30, /**< Unrecoverable error. */
- SOUND_SAMPLEFLAG_EAGAIN = 1 << 31 /**< Function would block, or temp error. */
+ SOUND_SAMPLEFLAG_EAGAIN = (int)(1u << 31) /**< Function would block, or temp error. */
} Sound_SampleFlags;