PG_FUNCTION_INFO_V1(gin_extract_value_bigm);
-Datum gin_extract_value_bigm(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(gin_extract_query_bigm);
-Datum gin_extract_query_bigm(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(gin_bigm_consistent);
-Datum gin_bigm_consistent(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(gin_bigm_compare_partial);
-Datum gin_bigm_compare_partial(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(pg_gin_pending_stats);
+
+/*
+ * The function prototypes are created as a part of PG_FUNCTION_INFO_V1
+ * macro since 9.4, and hence the declaration of the function prototypes
+ * here is necessary only for 9.3 or before.
+ */
+#if PG_VERSION_NUM < 90400
+Datum gin_extract_value_bigm(PG_FUNCTION_ARGS);
+Datum gin_extract_query_bigm(PG_FUNCTION_ARGS);
+Datum gin_bigm_consistent(PG_FUNCTION_ARGS);
+Datum gin_bigm_compare_partial(PG_FUNCTION_ARGS);
Datum pg_gin_pending_stats(PG_FUNCTION_ARGS);
+#endif
Datum
gin_extract_value_bigm(PG_FUNCTION_ARGS)
char *bigm_last_update = NULL;
PG_FUNCTION_INFO_V1(show_bigm);
-Datum show_bigm(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(bigmtextcmp);
-Datum bigmtextcmp(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(likequery);
-Datum likequery(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(bigm_similarity);
-Datum bigm_similarity(PG_FUNCTION_ARGS);
-
PG_FUNCTION_INFO_V1(bigm_similarity_op);
+
+/*
+ * The function prototypes are created as a part of PG_FUNCTION_INFO_V1
+ * macro since 9.4, and hence the declaration of the function prototypes
+ * here is necessary only for 9.3 or before.
+ */
+#if PG_VERSION_NUM < 90400
+Datum show_bigm(PG_FUNCTION_ARGS);
+Datum bigmtextcmp(PG_FUNCTION_ARGS);
+Datum likequery(PG_FUNCTION_ARGS);
+Datum bigm_similarity(PG_FUNCTION_ARGS);
Datum bigm_similarity_op(PG_FUNCTION_ARGS);
+#endif
void _PG_init(void);
void _PG_fini(void);