summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/system.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:31 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:31 +0000
commit1ae93c94429de697fb17f7067367fbf32fd3b6fc (patch)
treedc02b0f8e2682908655ebf27ee5d9e6796ab84f1 /apt-pkg/contrib/system.h
parentd955fe80937173f6e4c609ae58a916b61137583d (diff)
HP-UX fixes
Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
Diffstat (limited to 'apt-pkg/contrib/system.h')
-rw-r--r--apt-pkg/contrib/system.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/contrib/system.h b/apt-pkg/contrib/system.h
index 325576dbf..7ec3d7feb 100644
--- a/apt-pkg/contrib/system.h
+++ b/apt-pkg/contrib/system.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: system.h,v 1.2 1999/01/18 06:20:08 jgg Exp $
+// $Id: system.h,v 1.3 1999/12/10 23:40:29 jgg Exp $
/* ######################################################################
System Header - Usefull private definitions
@@ -19,6 +19,7 @@
#define MAX_VAL(t) (((t)(-1) > 0) ? (t)(-1) : (t)(((1L<<(sizeof(t)*8-1))-1)))
// Min/Max functions
+#if !defined(MIN)
#if defined(__HIGHC__)
#define MIN(x,y) _min(x,y)
#define MAX(x,y) _max(x,y)
@@ -36,6 +37,7 @@
#define MIN(A,B) ((A) < (B)?(A):(B))
#define MAX(A,B) ((A) > (B)?(A):(B))
#endif
+#endif
/* Bound functions, bound will return the value b within the limits a-c
bounv will change b so that it is within the limits of a-c. */