odyssey/sources/postgres.h

32 lines
613 B
C

#ifndef ODYSSEY_POSTGRES_H
#define ODYSSEY_POSTGRES_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
#define int8 int8_t
#define uint8 uint8_t
#define uint16 uint16_t
#define uint32 uint32_t
#define uint64 uint64_t
#define lengthof(array) (sizeof(array) / sizeof((array)[0]))
#define pg_hton32(x) htobe32(x)
#define pg_attribute_noreturn() _NORETURN
#define HIGHBIT (0x80)
#define IS_HIGHBIT_SET(ch) ((unsigned char)(ch)&HIGHBIT)
#define FRONTEND
#include <string.h>
#include <common/base64.h>
#include <common/saslprep.h>
#include <common/scram-common.h>
#endif /* ODYSSEY_POSTGRES_H */