fixed version types for platforms with 32-bit "long" type
authorHolger Schemel <holger.schemel@virtion.de>
Sat, 30 Nov 2024 10:15:35 +0000 (11:15 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sat, 30 Nov 2024 10:17:17 +0000 (11:17 +0100)
src/libgame/system.h
src/libgame/types.h

index 9d11cc6dd8e6c4a46b29a2c88a77a85032ad34b4..a903ad099802e8ed5c340890d105ec713d42c329 100644 (file)
 
 // type definitions
 
-typedef unsigned long VersionType;
-typedef unsigned char VersionSubType;
+typedef uint64_t       VersionType;
+typedef uint8_t                VersionSubType;
 
 
 // structure definitions
index 23d0072ad20e242b092650a028a79fe0e39c3df2..7055428a584310da23f9f56e284eef21ba773411 100644 (file)
@@ -15,6 +15,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <string.h>
 #include <sys/types.h>