From 97f98af43fec1283e80260da284a31fa0e67572f Mon Sep 17 00:00:00 2001 From: codemaster Date: Mon, 27 Mar 2006 10:20:26 +0000 Subject: Fixed a problem in chrif.c where USHRT_MAX was undefined. [Codemaster] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5766 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/chrif.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index ed34bd94c..80f913774 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -6,6 +6,7 @@ GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALAR 2006/03/26 + * Fixed a problem in chrif.c where USHRT_MAX was undefined. [Codemaster] * Added jAthena's new start and athena-start shell scripts. [Lance] * Changed status_point/skill_point to unsigned short. Adjusted the code as necessary to prevent overflows. [Skotlex] diff --git a/src/map/chrif.c b/src/map/chrif.c index 3a11222fb..174bb5c27 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -35,6 +35,10 @@ //Used Packets: U->2af8 //Free Packets: F->2af8 +#ifndef USHRT_MAX + #define USHRT_MAX 65535 +#endif + struct dbt *auth_db; static const int packet_len_table[0x3d] = { -- cgit v1.2.3-70-g09d2