CloverBootloader/Xcode/cpp_tests/Include/Platform.h

77 lines
1.7 KiB
C
Raw Normal View History

//
// Platform.h.h
// cpp_tests
//
// Created by jief on 23.02.20.
// Copyright © 2020 JF Knudsen. All rights reserved.
//
#ifndef Platform_h_h
#define Platform_h_h
2020-04-25 11:59:07 +02:00
#ifdef _MSC_VER
#include <Windows.h>
#endif
#include "Uefi.h"
2020-11-02 14:45:11 +01:00
#include "../Include/Library/Base.h"
#include "../Include/Library/BaseLib.h"
#include "../Include/Library/BaseMemoryLib.h"
2020-11-12 22:25:56 +01:00
#include <BootLog.h>
2020-11-02 14:45:11 +01:00
#include <stdio.h>
#include <limits.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include <wchar.h>
#include "posix.h"
#ifndef __cplusplus
//typedef uint16_t wchar_t;
typedef uint32_t char32_t;
typedef uint16_t char16_t;
#endif
#include "../../../rEFIt_UEFI/Platform/Posix/abort.h"
#include "../../../rEFIt_UEFI/cpp_foundation/unicode_conversions.h"
2020-11-12 22:25:56 +01:00
#ifdef __cplusplus
#include "../../../rEFIt_UEFI/cpp_foundation/XString.h"
#include "../../../rEFIt_UEFI/cpp_foundation/XObjArray.h"
2020-11-12 22:25:56 +01:00
#endif
#include "../../../rEFIt_UEFI/Platform/Utils.h"
#include "xcode_utf_fixed.h"
void CpuDeadLoop(void);
void PauseForKey(const wchar_t* msg);
const char* efiStrError(EFI_STATUS Status);
void* AllocatePool(UINTN AllocationSize);
void* AllocateZeroPool(UINTN AllocationSize);
void* ReallocatePool(UINTN OldSize, UINTN NewSize, void* OldBuffer);
void FreePool(const void* Buffer);
//void ZeroMem(void *Destination, UINTN Length);
//void SetMem(void *Destination, UINTN Length, char c);
//void CopyMem(void *Destination, const void *Source, UINTN Length);
//INTN CompareMem(const void* DestinationBuffer, const void* SourceBuffer, UINTN Length);
2020-04-05 14:25:39 +02:00
CHAR16* EfiStrDuplicate (IN CONST CHAR16 *Src);
2020-02-24 14:07:59 +01:00
2020-11-12 22:25:56 +01:00
#define DEBUG_VERBOSE 0
#define DEBUG( expression )
#endif /* Platform_h_h */