#include <limits.h> (#319)

Fixes error about undefined INT_MAX in common/bspfile.cc
This commit is contained in:
xDShot 2021-09-12 09:15:02 +03:00 committed by GitHub
parent 81d58e5e89
commit 4a1feadaab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@
#include <common/mathlib.hh>
#include <common/bspfile.hh>
#include <limits.h>
const bspversion_t bspver_generic { NO_VERSION, NO_VERSION, "mbsp", "generic BSP" };
const bspversion_t bspver_q1 { BSPVERSION, NO_VERSION, "bsp29", "Quake BSP" };
/* Hexen II doesn't use a separate version, but we can still use a separate tag/name for it */
@ -3626,4 +3628,4 @@ DecompressRow (const uint8_t *in, const int numbytes, uint8_t *decompressed)
c--;
}
} while (out - decompressed < row);
}
}