Author: cazfi Date: Sat Jan 24 11:36:36 2015 New Revision: 27799 URL: http://svn.gna.org/viewcvs/freeciv?rev=27799&view=rev Log: Made JSON_CONNECTION available from public freeciv_config.h header, under new name FREECIV_JSON_CONNECTION.
See patch #5738 Modified: trunk/common/connection.h trunk/gen_headers/freeciv_config.h.in trunk/m4/web-client.m4 Modified: trunk/common/connection.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/connection.h?rev=27799&r1=27798&r2=27799&view=diff ============================================================================== --- trunk/common/connection.h (original) +++ trunk/common/connection.h Sat Jan 24 11:36:36 2015 @@ -26,13 +26,13 @@ #include <sys/time.h> #endif -#ifdef JSON_CONNECTION +#ifdef FREECIV_JSON_CONNECTION #include <jansson.h> -#endif /* JSON_CONNECTION */ - -#ifndef JSON_CONNECTION +#endif /* FREECIV_JSON_CONNECTION */ + +#ifndef FREECIV_JSON_CONNECTION #define USE_COMPRESSION -#endif /* JSON_CONNECTION */ +#endif /* FREECIV_JSON_CONNECTION */ /************************************************************************** The connection struct and related stuff. @@ -157,9 +157,9 @@ struct socket_packet_buffer *buffer; struct socket_packet_buffer *send_buffer; struct timer *last_write; -#ifdef JSON_CONNECTION +#ifdef FREECIV_JSON_CONNECTION json_t *json_packet; -#endif /* JSON_CONNECTION */ +#endif /* FREECIV_JSON_CONNECTION */ double ping_time; Modified: trunk/gen_headers/freeciv_config.h.in URL: http://svn.gna.org/viewcvs/freeciv/trunk/gen_headers/freeciv_config.h.in?rev=27799&r1=27798&r2=27799&view=diff ============================================================================== --- trunk/gen_headers/freeciv_config.h.in (original) +++ trunk/gen_headers/freeciv_config.h.in Sat Jan 24 11:36:36 2015 @@ -44,4 +44,7 @@ /* libintl.h available */ #undef FREECIV_HAVE_LIBINTL_H +/* jansson network protocol in use */ +#undef FREECIV_JSON_CONNECTION + #endif /* FC__FREECIV_CONFIG_H */ Modified: trunk/m4/web-client.m4 URL: http://svn.gna.org/viewcvs/freeciv/trunk/m4/web-client.m4?rev=27799&r1=27798&r2=27799&view=diff ============================================================================== --- trunk/m4/web-client.m4 (original) +++ trunk/m4/web-client.m4 Sat Jan 24 11:36:36 2015 @@ -14,6 +14,6 @@ AC_CHECK_HEADER([jansson.h], [], [AC_MSG_ERROR([libjansson found but not jansson.h])]) - AC_DEFINE([JSON_CONNECTION], [1], [jansson network protocol in use]) + AC_DEFINE([FREECIV_JSON_CONNECTION], [1], [jansson network protocol in use]) fi ]) _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits