freebsd-ports/games/glest
Piotr Kubaj c65be9eb37 games/glest: fix build on GCC architectures
Building with GCC fails:
./mk/linux/glest_game/ai/ai_rule.cpp: In member function 'virtual bool Glest::Game::AiRuleMassiveAttack::test()':
./mk/linux/glest_game/ai/ai_rule.cpp:156:46: error: 'INT_MAX' was not declared in this scope
  156 |   return ai->beingAttacked(attackPos, field, INT_MAX);
      |                                              ^~~~~~~
./mk/linux/glest_game/ai/ai_rule.cpp:19:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
   18 | #include "leak_dumper.h"
  +++ |+#include <climits>
   19 |
./mk/linux/glest_game/ai/ai_rule.cpp: In member function 'virtual bool Glest::Game::AiRuleExpand::test()':
./mk/linux/glest_game/ai/ai_rule.cpp:815:22: error: 'INT_MAX' was not declared in this scope
  815 |     int minDistance= INT_MAX;
      |                      ^~~~~~~
./mk/linux/glest_game/ai/ai_rule.cpp:815:22: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
...failed C++ ./build/powerpc64-portbld-freebsd12.1/optimize/glest_game/ai/ai_rule.o ...

Include climits in ai_rule.cpp to fix it.

PR:		242766
Approved by:	mmokhi (maintainer timeout)
MFH:		2020Q1 (fix build blanket)
2020-01-04 20:23:26 +00:00
..
files games/glest: fix build on GCC architectures 2020-01-04 20:23:26 +00:00
distinfo
Makefile games/glest: fix build on GCC architectures 2019-12-09 11:24:07 +00:00
pkg-descr
pkg-plist