*/
/* Changes copyright (c) 2013 Roderick W. Smith */
-#define VERSION L"0.8.7"
+//#define VERSION L"0.9.1"
//
// config
//
-#if defined(EFI32) || defined(EFIX64)
+#if defined(EFI32) || defined(EFIX64) || defined(EFIAARCH64)
#define CONFIG_EFI
#endif
#include <sys/time.h>
#include <fcntl.h>
+/*
typedef int INTN;
typedef unsigned int UINTN;
typedef unsigned char UINT8;
typedef unsigned long UINT32;
typedef unsigned long long UINT64;
typedef void VOID;
+*/
typedef int BOOLEAN;
#ifndef FALSE
// FUTURE: use STR(), #define Print printf
-#define CopyMem memcpy
-#define CompareMem memcmp
-
-#define copy_guid(destguid, srcguid) (memcpy(destguid, srcguid, 16))
+#define copy_guid(destguid, srcguid) (CopyMem(destguid, srcguid, 16))
#define guids_are_equal(guid1, guid2) (memcmp(guid1, guid2, 16) == 0)
#define EFI_UNSUPPORTED 1