From ae73d1a4ee373f8c94291dc79f090c991dc021e4 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 28 Sep 2004 04:14:57 +0000 Subject: use MAXPATHLEN for path buffer size svn-id: r15319 --- common/stdafx.h | 1 + common/util.h | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'common') diff --git a/common/stdafx.h b/common/stdafx.h index 2d59efe688..9a72493129 100644 --- a/common/stdafx.h +++ b/common/stdafx.h @@ -97,6 +97,7 @@ #undef CMD_INVALID #endif #if !defined(macintosh) +#include #include #include #endif diff --git a/common/util.h b/common/util.h index 68c47a1fb5..0df4e54a59 100644 --- a/common/util.h +++ b/common/util.h @@ -24,8 +24,12 @@ #include "common/scummsys.h" template inline T ABS (T x) { return (x>=0) ? x : -x; } +#if !defined(MIN) template inline T MIN (T a, T b) { return (a inline T MAX (T a, T b) { return (a>b) ? a : b; } +#endif /** * Template method which swaps the vaulues of its two parameters. -- cgit v1.2.3