summaryrefslogtreecommitdiff
path: root/compat.h
blob: d33c5e54b4e86388df70f29147c38518ba353adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*-------------------------------------------------------------------------
 *
 * 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 <joeyadams3.14159@gmail.com>.
 *
 *-------------------------------------------------------------------------
 */

#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