CloverBootloader/rEFIt_UEFI/Platform/Posix/string.h

35 lines
659 B
C
Raw Normal View History

#ifndef __CLOVER_STRING_H__
#define __CLOVER_STRING_H__
2020-04-16 11:09:22 +02:00
#ifdef __cplusplus
extern "C" {
2020-04-16 11:09:22 +02:00
#endif
#include <Library/BaseMemoryLib.h>
2020-04-16 11:09:22 +02:00
#ifdef __GNUC__
//void* memset(void* dst, int ch, UINT64 count) __attribute__ ((used));
void* memcpy(void *dst, const void *src, size_t len) __attribute__ ((used));
#else
// void* memset(void* dst, int ch, UINT64 count);
void* memcpy(void *dst, const void *src, size_t len);
#endif
inline void* memmove(void *dst, const void *src, size_t len)
{
return CopyMem(dst, (void*)(src), len);
}
2020-04-15 19:28:59 +02:00
inline void* memcpy(void *dst, const void *src, size_t len)
{
return CopyMem(dst,src,len);
}
2020-04-16 11:09:22 +02:00
#ifdef __cplusplus
}
#endif
#endif