X-Git-Url: https://code.delx.au/refind/blobdiff_plain/a8a06ba01058e3ef5f546a4a4a352d06638359a8..b3f1088e428ec704586ecfdddf75f757f213b97e:/libeg/lodepng.h diff --git a/libeg/lodepng.h b/libeg/lodepng.h index 5fae53d..4593949 100644 --- a/libeg/lodepng.h +++ b/libeg/lodepng.h @@ -34,15 +34,19 @@ freely, subject to the following restrictions: #include /*for size_t*/ -// Below block of lines required for GNU-EFI (program hangs when run without them, -// and associated function in lodepng_xtra.c) +// Below block of lines required for GNU-EFI and TianoCore (program hangs +// when run without them, and associated function in lodepng_xtra.c) int MyStrlen(const char *InString); #define strlen(c) MyStrlen(c) +#include +#define abs(x) (((x) < 0) ? -(x) : (x)) #ifdef __MAKEWITH_GNUEFI #include #include -#define memcpy(a, b, c) CopyMem(a, b, c) +#else +#include "../include/tiano_includes.h" #endif +#define memcpy(a, b, c) CopyMem(a, b, c) #ifdef __cplusplus #include