mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
9cb4016bc5
Rename strerror to efiStrError because of conflict when run cpp_tests on Mac. Switch base64_decode_block to long to avoid warning and cast. Correct GetTableType4(). Size was used without being initialized.
36 lines
750 B
C++
Executable File
36 lines
750 B
C++
Executable File
|
|
|
|
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
|
|
#undef memset
|
|
#undef memcpy
|
|
|
|
extern "C" {
|
|
/*
|
|
* memset and memcpy has to be provided for clang
|
|
*/
|
|
|
|
#if 1 //!defined(_MSC_VER)
|
|
|
|
#ifdef __GNUC__
|
|
void* memset(void* dst, int ch, size_t count) __attribute__ ((used));
|
|
//void* memcpy(void* dst, const void* src, UINT64 count) __attribute__ ((used));
|
|
#else
|
|
void* memset(void* dst, int ch, UINT64 count);
|
|
//void* memcpy(void* dst, const void* src, UINT64 count);
|
|
#endif
|
|
|
|
void* memset(void* dst, int ch, size_t count)
|
|
{
|
|
SetMem(dst, count, (UINT8)(ch));
|
|
return dst;
|
|
}
|
|
//
|
|
//void* memcpy(void* dst, const void* src, UINT64 count)
|
|
//{
|
|
// CopyMem(dst, src, count);
|
|
// return dst;
|
|
//}
|
|
#endif
|
|
|
|
} // extern "C"
|