summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/archbase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/archbase.h b/src/arch/archbase.h
index 1169c16..5ef412c 100644
--- a/src/arch/archbase.h
+++ b/src/arch/archbase.h
@@ -30,6 +30,10 @@
+#define OFF_FMT "%ld"
+#define OFF_CAST(v) ((long)v)
+
+
/* Octet de données binaires */
typedef uint8_t bin_t;
@@ -42,6 +46,7 @@ typedef uint64_t vmpa_t;
#define VMPA_FMT "0x%llx"
#define VMPA_FMT_LONG "0x%08llx"
+#define VMPA_CAST(v) ((unsigned long long)v)
#define VMPA_MAX_SIZE 19