0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

libratbox: define UINT16_MAX

UINT16_MAX may not be defined on some ancient hosts (FreeBSD 4.8)

It's used by libratbox/src/tools.c
This commit is contained in:
Simon Arlott 2016-02-06 23:51:07 +00:00 committed by William Pitcock
parent 32c3cbd857
commit 41aed6bbf7

View file

@ -171,6 +171,10 @@ char *rb_strerror(int error);
#define INT16SZ 2
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
typedef void log_cb(const char *buffer);
typedef void restart_cb(const char *buffer);