diff options
author | maedhros <maedhros@openttd.org> | 2007-01-23 15:47:28 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-01-23 15:47:28 +0000 |
commit | 18fa2ca2339224d246bad9ed69c0e4e27354c796 (patch) | |
tree | d233417f82996403051ff7a20b2a6302f1d0ae7d /src/graph_gui.cpp | |
parent | cfb7fb3ac4f261eb2bae02842a5af8dccdd0c7b5 (diff) | |
download | openttd-18fa2ca2339224d246bad9ed69c0e4e27354c796.tar.xz |
(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.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 7427e7088..587f90947 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -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 { |