Hi,

ProcessList.c uses the MIN/MAX macros without checking for their
existence, unlike the other files like CPUMeter.c and Header.c. The
attached patch fixes that.

Best regards,
Valentin

diff -upNr a/ProcessList.c b/ProcessList.c
--- a/ProcessList.c     2011-04-10 18:44:05.197000038 +0200
+++ b/ProcessList.c     2011-04-10 18:44:10.101000036 +0200
@@ -31,6 +31,13 @@ in the source distribution for its full 
 #include "debug.h"
 #include <assert.h>
 
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
 /*{
 #ifndef PROCDIR
 #define PROCDIR "/proc"
diff -upNr a/ProcessList.h b/ProcessList.h
--- a/ProcessList.h     2011-04-10 18:44:36.569000036 +0200
+++ b/ProcessList.h     2011-04-10 18:44:39.304000035 +0200
@@ -35,6 +35,13 @@ in the source distribution for its full 
 #include "debug.h"
 #include <assert.h>
 
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
 #ifndef PROCDIR
 #define PROCDIR "/proc"
 #endif


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
htop-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htop-general

Reply via email to