Skip to content

Commit

Permalink
Fixed Windows build with latest SDK
Browse files Browse the repository at this point in the history
Made changes to pmSDL.hpp in order to fix build errors related to order of included Windows libraries.
  • Loading branch information
serjykalstryke authored and kblaschke committed Dec 29, 2023
1 parent 2911adf commit 0dfefc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/sdl-test-ui/pmSDL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@
#include <sys/stat.h>

#ifdef WASAPI_LOOPBACK
#include <windows.h>
#include <mmdeviceapi.h>
#include <audioclient.h>
#include <avrt.h>

#include <functiondiscoverykeys_devpkey.h>
#include <mmdeviceapi.h>
#include <avrt.h>

#include <mmsystem.h>
#include <stdio.h>
#include <windows.h>


#define LOG(format, ...) wprintf(format L"\n", __VA_ARGS__)
#define ERR(format, ...) LOG(L"Error: " format, __VA_ARGS__)
Expand Down

0 comments on commit 0dfefc2

Please sign in to comment.