浏览代码

restore max() macro

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@243 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop 23 年之前
父节点
当前提交
518c841e42
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/utils.c

+ 2 - 0
plugins/utils.c

@@ -65,6 +65,8 @@ char *strpcat (char *dest, const char *src, const char *str);
  * Note that numerically the above does not hold
  * Note that numerically the above does not hold
  ****************************************************************************/
  ****************************************************************************/
 
 
+#define max(a,b) (((a)>(b))?(a):(b))
+
 int
 int
 max_state (int a, int b)
 max_state (int a, int b)
 {
 {