Michael D Kinney e78fb8a366 UnitTestFrameworkPkg/MemoryAllocationLibPosix: Add allocate below address
Add HostMemoryAllocationBelowAddressLib class and implementation that
uses OS specific services to perform pool and page allocations below
a specified address in a host based unit test application execution
environment. This library class is only required for mocking buffers
that are assumed to be below a specific address by code under test.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-01-21 05:02:38 +00:00

29 lines
603 B
C

/** @file
Include windows.h addressing conflicts with forced include of Base.h
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef WIN_INCLUDE_H_
#define WIN_INCLUDE_H_
#define GUID _WINNT_DUP_GUID_____
#define _LIST_ENTRY _WINNT_DUP_LIST_ENTRY_FORWARD
#define LIST_ENTRY _WINNT_DUP_LIST_ENTRY
#undef VOID
#pragma warning (push)
#pragma warning (disable : 4668)
#include <windows.h>
#pragma warning (pop)
#undef GUID
#undef _LIST_ENTRY
#undef LIST_ENTRY
#define VOID void
#endif