11// Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
3+
34// ---------------------------------------------------------------------------
45// Check.h
5- //
6-
76//
87// Assertion checking infrastructure
98// ---------------------------------------------------------------------------
@@ -663,7 +662,7 @@ CHECK CheckAligned(UINT value, UINT alignment);
663662CHECK CheckAligned (ULONG value, UINT alignment);
664663#endif
665664CHECK CheckAligned (UINT64 value, UINT alignment);
666- #ifdef __APPLE__
665+ #if defined( __APPLE__) || defined(__OpenBSD__)
667666CHECK CheckAligned (SIZE_T value, UINT alignment);
668667#endif
669668CHECK CheckAligned (const void *address, UINT alignment);
@@ -673,7 +672,7 @@ CHECK CheckOverflow(UINT value1, UINT value2);
673672CHECK CheckOverflow (ULONG value1, ULONG value2);
674673#endif
675674CHECK CheckOverflow (UINT64 value1, UINT64 value2);
676- #ifdef __APPLE__
675+ #if defined( __APPLE__) || defined(__OpenBSD__)
677676CHECK CheckOverflow (SIZE_T value1, SIZE_T value2);
678677#endif
679678#ifndef __wasm__
@@ -689,15 +688,15 @@ CHECK CheckUnderflow(UINT value1, UINT value2);
689688CHECK CheckUnderflow (ULONG value1, ULONG value2);
690689#endif
691690CHECK CheckUnderflow (UINT64 value1, UINT64 value2);
692- #ifdef __APPLE__
691+ #if defined( __APPLE__) || defined(__OpenBSD__)
693692CHECK CheckUnderflow (SIZE_T value1, SIZE_T value2);
694693#endif
695694CHECK CheckUnderflow (const void *address, UINT offset);
696695#if defined(_MSC_VER)
697696CHECK CheckUnderflow (const void *address, ULONG offset);
698697#endif
699698CHECK CheckUnderflow (const void *address, UINT64 offset);
700- #ifdef __APPLE__
699+ #if defined( __APPLE__) || defined(__OpenBSD__)
701700CHECK CheckUnderflow (const void *address, SIZE_T offset);
702701#endif
703702CHECK CheckUnderflow (const void *address, void *address2);
0 commit comments