Skip to content

Commit

Permalink
MIDIPlay: Replace profileapi.h with windows.h
Browse files Browse the repository at this point in the history
Signed-off-by: Avery King <[email protected]>
  • Loading branch information
Avery King committed Sep 5, 2024
1 parent c6f6b40 commit f6f742d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/MIDIPlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ Time (in seconds, = total_sample_count / sample_rate)
class NoteTrack;
using NoteTrackConstArray = std::vector < std::shared_ptr< const NoteTrack > >;

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

namespace {

/*
Expand Down Expand Up @@ -397,8 +402,6 @@ static PaTime util_GetTime( void )

#elif defined( __WXMSW__ )

#include <profileapi.h>

static double secondsPerTick_;

static struct InitializeTime { InitializeTime() {
Expand Down

0 comments on commit f6f742d

Please sign in to comment.