1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r8374) -Fix (r8367): LLONG_MAX isn't always defined, and INT64_MAX describes the

required value better anyway. However, INT64_MAX comes from stdint.h which
doesn't seem to exist on MSVC or MorphOS, so it's defined manually for them.
This commit is contained in:
maedhros
2007-01-23 15:47:28 +00:00
parent cfb7fb3ac4
commit 18fa2ca233
2 changed files with 11 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ enum {
};
/* Apparently these don't play well with enums. */
static const int64 INVALID_DATAPOINT = LLONG_MAX; // Value used for a datapoint that shouldn't be drawn.
static const int64 INVALID_DATAPOINT = INT64_MAX; // Value used for a datapoint that shouldn't be drawn.
static const uint INVALID_DATAPOINT_POS = UINT_MAX; // Used to determine if the previous point was drawn.
typedef struct GraphDrawer {