Clean up mercury_proc.h and remove HG_CHECKSUM_MAX_SIZE macro
/* Public Macros */
/*****************/
-/* FIXME: this is based on mchecksum's currently supported hash methods, which
- * aren't exposed. The largest is crc64. There must be a better way... */
-#ifdef HG_HAS_CHECKSUMS
-# define HG_CHECKSUM_MAX_SIZE 8
-#else
-# define HG_CHECKSUM_MAX_SIZE 0
-#endif
+/* Encode/decode version number into uint32 */
+#define HG_GET_MAJOR(value) ((value >> 24) & 0xFF)
+#define HG_GET_MINOR(value) ((value >> 16) & 0xFF)
+#define HG_GET_PATCH(value) (value & 0xFFFF)
+#define HG_VERSION ((HG_VERSION_MAJOR << 24) | (HG_VERSION_MINOR << 16) \
+ | HG_VERSION_PATCH)
/*********************/
/* Public Prototypes */
