mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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>
29 lines
603 B
C
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
|