File nethack-vultures-std__algorithm.patch of Package vultures
diff -Nur old/include/hack.h new/include/hack.h --- old/include/hack.h 2015-01-21 20:47:46.000000000 +0100 +++ new/include/hack.h 2021-04-16 15:41:31.105459515 +0200 @@ -273,6 +273,7 @@ #define FEATURE_NOTICE_VER_MIN (((unsigned long)(0x0000000000FF0000L & flags.suppress_alert)) >> 16) #define FEATURE_NOTICE_VER_PATCH (((unsigned long)(0x000000000000FF00L & flags.suppress_alert)) >> 8) +#ifndef __cplusplus #ifndef max #define max(a,b) ((a) > (b) ? (a) : (b)) #endif @@ -280,6 +281,7 @@ #define min(x,y) ((x) < (y) ? (x) : (y)) #endif #define plur(x) (((x) == 1) ? "" : "s") +#endif #define ARM_BONUS(obj) (objects[(obj)->otyp].a_ac + (obj)->spe \ - min((int)greatest_erosion(obj),objects[(obj)->otyp].a_ac))