Fixed a bunch of compiler warnings with Cygwin/MingW.
This commit is contained in:
parent
488a27f1b9
commit
816523a285
6 changed files with 20 additions and 28 deletions
|
@ -120,12 +120,7 @@ DI_SetError(const char *str, HRESULT err)
|
|||
static int
|
||||
DI_GUIDIsSame(const GUID * a, const GUID * b)
|
||||
{
|
||||
if (((a)->Data1 == (b)->Data1) &&
|
||||
((a)->Data2 == (b)->Data2) &&
|
||||
((a)->Data3 == (b)->Data3) &&
|
||||
(SDL_strcmp((a)->Data4, (b)->Data4) == 0))
|
||||
return 1;
|
||||
return 0;
|
||||
return (SDL_memcmp(a, b, sizeof (GUID)) == 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue