diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-21 19:28:36 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-21 19:28:36 +0000 |
| commit | 380bd04c1658795c77b3b808ee766347188fab5f (patch) | |
| tree | cb654e3e510cb1974120cd4d3ea1984b30f3eb32 /contrib/miscutil/misc_utils.h | |
| parent | a171fc1a4f37e37c1e80fe3e92a96b2bd37c8f98 (diff) | |
| download | postgresql-380bd04c1658795c77b3b808ee766347188fab5f.tar.gz | |
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.
Diffstat (limited to 'contrib/miscutil/misc_utils.h')
| -rw-r--r-- | contrib/miscutil/misc_utils.h | 11 |
1 files changed, 2 insertions, 9 deletions
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 |
