1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Win32 compile fixes for pgbench, pgcrypto, and tsearch.

Claudio Natoli
This commit is contained in:
Tom Lane
2004-09-14 03:39:55 +00:00
parent fc564686a7
commit bf06825e31
5 changed files with 34 additions and 19 deletions

View File

@ -33,6 +33,9 @@ typedef char *BITVECP;
#define GETBIT(x,i) ( (GETBYTE(x,i) >> ( (i) % BITBYTE )) & 0x01 )
#define abs(a) ((a) < (0) ? -(a) : (a))
#ifdef min
#undef min
#endif
#define min(a,b) ((a) < (b) ? (a) : (b))
#define HASHVAL(val) (((unsigned int)(val)) % SIGLENBIT)
#define HASH(sign, val) SETBIT((sign), HASHVAL(val))