Fixed compile error

Now compiling with --allow-multiple-definition. This is FAR from ideal but i don't have enough experience in C to fix this differently.
This commit is contained in:
KIT!
2024-09-09 14:54:47 +02:00
parent c9f962d9cb
commit a5200b11de
4 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
#include "poll.h"
#include <zlib.h>
#include <tomcrypt.h>
#define POLY 0x82f63b78
GameVersion gameVersion = GameVersion::UNKNOWN;
std::vector<HMODULE> plugins;
@@ -38,7 +37,7 @@ uint32_t crc32c(uint32_t crc, const unsigned char *buf, size_t len)
while (len--) {
crc ^= *buf++;
for (k = 0; k < 8; k++)
crc = (crc >> 1) ^ (POLY & (0 - (crc & 1)));
crc = (crc >> 1) ^ (crcPOLY & (0 - (crc & 1)));
}
return ~crc;
}