/*------------------------------------------------------------------------- * * compat.h * Compatibility routines to let the JSON module work in PostgreSQL 8.3 * * Copyright (c) 2011, PostgreSQL Global Development Group * Arranged by Joey Adams . * *------------------------------------------------------------------------- */ #ifndef JSON_COMPAT_H #define JSON_COMPAT_H #include "postgres.h" #include "mb/pg_wchar.h" #ifndef SearchSysCacheList1 #define SearchSysCacheList1(cacheId, key1) \ SearchSysCacheList(cacheId, 1, key1, 0, 0, 0) #endif #if PG_VERSION_NUM < 90100 #define utf8_to_unicode json_compat_utf8_to_unicode extern pg_wchar json_compat_utf8_to_unicode(const unsigned char *c); #endif #endif