Skip to content

Commit

Permalink
fix(build): Include Windows.h before processthreadsapi.h
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Nana <[email protected]>
  • Loading branch information
na2axl committed Oct 2, 2024
1 parent 9ace109 commit 5de0b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SparkyStudios/Audio/Amplitude/Core/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ namespace SparkyStudios::Audio::Amplitude
void Work() final;

/**
* @bbrief Pool task execution function.
* @brief Pool task execution function.
*/
virtual void AwaitableWork() = 0;

Expand Down
4 changes: 3 additions & 1 deletion src/Core/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
#include <SparkyStudios/Audio/Amplitude/Core/Thread.h>

#if defined(AM_WINDOWS_VERSION)
#include <processthreadsapi.h>
// clang-format off
#include <Windows.h>
#include <processthreadsapi.h>
// clang-format on
#undef CreateMutex
#else
#include <ctime>
Expand Down

0 comments on commit 5de0b6c

Please sign in to comment.