]> mj.ucw.cz Git - libucw.git/blobdiff - lib/config.h
If have GET_O and GET_P, we should have PUT_O and PUT_P as well.
[libucw.git] / lib / config.h
index f1a5af12a94c4a168cdc1bdafff06b3faee984b5..c6e7c7509aae426cc9427f9b4524bfdce99faf4a 100644 (file)
@@ -57,6 +57,8 @@ typedef s64 sh_off_t;
 #define bputp(f,l) bputq(f,l)
 #define GET_O(p) GET_U40(p)
 #define GET_P(p) GET_U64(p)
+#define PUT_O(p,x) PUT_U40(p,x)
+#define PUT_P(p,x) PUT_U64(p,x)
 #else
 typedef s32 sh_off_t;
 #define BYTES_PER_O 4
@@ -67,6 +69,8 @@ typedef s32 sh_off_t;
 #define bputp(f,l) bputl(f,l)
 #define GET_O(p) GET_U32(p)
 #define GET_P(p) GET_U32(p)
+#define PUT_O(p,x) PUT_U32(p,x)
+#define PUT_P(p,x) PUT_U32(p,x)
 #endif
 
 /* Misc */