From 380bd04c1658795c77b3b808ee766347188fab5f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 21 Oct 2004 19:28:36 +0000 Subject: Standardize on using the Min, Max, and Abs macros that are in our c.h file, getting rid of numerous ad-hoc versions that have popped up in various places. Shortens code and avoids conflict with Windows min() and max() macros. --- contrib/miscutil/misc_utils.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'contrib/miscutil/misc_utils.h') diff --git a/contrib/miscutil/misc_utils.h b/contrib/miscutil/misc_utils.h index bc69ba8615..3de5ac7001 100644 --- a/contrib/miscutil/misc_utils.h +++ b/contrib/miscutil/misc_utils.h @@ -1,17 +1,10 @@ #ifndef MISC_UTILS_H #define MISC_UTILS_H -#ifdef max -#undef max -#endif -#ifdef min -#undef min -#endif - int backend_pid(void); int unlisten(char *relname); -int max(int x, int y); -int min(int x, int y); +int int4max(int x, int y); +int int4min(int x, int y); int active_listeners(text *relname); #endif -- cgit v1.2.1