[Groonga-commit] pgroonga/pgroonga at 54477e6 [master] Support PostgreSQL < 9.6 again

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 29 23:30:07 JST 2016


Kouhei Sutou	2016-12-29 23:30:07 +0900 (Thu, 29 Dec 2016)

  New Revision: 54477e675e3290374d5406eaf321db963794edee
  https://github.com/pgroonga/pgroonga/commit/54477e675e3290374d5406eaf321db963794edee

  Message:
    Support PostgreSQL < 9.6 again

  Modified files:
    src/pgrn_compatible.h

  Modified: src/pgrn_compatible.h (+7 -3)
===================================================================
--- src/pgrn_compatible.h    2016-12-29 23:25:43 +0900 (2266d44)
+++ src/pgrn_compatible.h    2016-12-29 23:30:07 +0900 (2906433)
@@ -17,11 +17,15 @@
 #endif
 
 #if PG_VERSION_NUM >= 90601
-#	define PGRN_FUNCTION_INFO_V1(function_name) \
+#	define PGRN_FUNCTION_INFO_V1(function_name)		\
 	PGDLLEXPORT PG_FUNCTION_INFO_V1(function_name)
-#else
-#	define PGRN_FUNCTION_INFO_V1(function_name) \
+#elif PG_VERSION_NUM >= 90600
+#	define PGRN_FUNCTION_INFO_V1(function_name)				\
 	extern PGDLLEXPORT PG_FUNCTION_INFO_V1(function_name)
+#else
+#	define PGRN_FUNCTION_INFO_V1(function_name)					\
+	extern PGDLLEXPORT Datum function_name(PG_FUNCTION_ARGS);	\
+	PG_FUNCTION_INFO_V1(function_name)
 #endif
 
 #if PG_VERSION_NUM >= 90600
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index