Skip to content

Commit

Permalink
SDL_hidapi_ps4.c: add HAVE_ENDPOINTVOLUME_H check to win32 volume code.
Browse files Browse the repository at this point in the history
this makes it build with my old toolchain with mingw-w64 1.0.10 headers
  • Loading branch information
sezero committed Sep 28, 2018
1 parent cf7d64f commit fde82e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/hidapi/SDL_hidapi_ps4.c
Expand Up @@ -140,7 +140,7 @@ static Uint32 crc32(Uint32 crc, const void *data, int count)
return crc;
}

#ifdef __WIN32__
#if defined(__WIN32__) && defined(HAVE_ENDPOINTVOLUME_H)
#include "../../core/windows/SDL_windows.h"

#ifndef NTDDI_VISTA
Expand Down Expand Up @@ -173,7 +173,7 @@ static float GetSystemVolume(void)
{
float volume = -1.0f; /* Return this if we can't get system volume */

#ifdef __WIN32__
#if defined(__WIN32__) && defined(HAVE_ENDPOINTVOLUME_H)
HRESULT hr = WIN_CoInitialize();
if (SUCCEEDED(hr)) {
IMMDeviceEnumerator *pEnumerator;
Expand Down

0 comments on commit fde82e5

Please sign in to comment.