Skip to content

Commit

Permalink
Add missing includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehpor committed Jan 24, 2025
1 parent ac53f12 commit 7989807
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions catkit_core/EventConditionVariable.inl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include "Timing.h"

#if defined(__linux__) || defined(__APPLE__)
#include <pthread.h>
#endif

using EventConditionVariable = EventImpl<EventImplementationType::ET_CONDITION_VARIABLE>;

#if defined(__linux__) || defined(__APPLE__)
Expand Down
7 changes: 7 additions & 0 deletions catkit_core/EventSemaphore.inl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

#include "Timing.h"

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

using EventSemaphore = EventImpl<EventImplementationType::ET_SEMAPHORE>;

#ifdef _WIN32

template<>
struct EventSharedState<EventImplementationType::ET_SEMAPHORE>
{
Expand Down

0 comments on commit 7989807

Please sign in to comment.