Skip to content

Commit

Permalink
Add missing ZeroMemory macro on non-Windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Valakor committed Jan 8, 2024
1 parent bebb5a2 commit 5502716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Remotery.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ static rmtBool g_SettingsInitialized = RMT_FALSE;
#include <atomic>
#endif

#ifndef RMT_PLATFORM_WINDOWS
#define ZeroMemory(dest, len) memset(dest, 0, len)
#endif

// clang-format on

#if defined(_MSC_VER) && !defined(__clang__)
Expand Down

0 comments on commit 5502716

Please sign in to comment.