From 30844869ccc3109a747f6ec8e94789af39688f6b Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 18 Mar 2013 17:10:39 +0100 Subject: update config HAVE_FOO instructions Feature macros should now always be set (even if to 0), and should be checked with #if, in order to avoid missing including the config_xxx.hxx header. http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: Id15f536240d032b3c523e33856cb40af78be65df --- config_host/README | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config_host') diff --git a/config_host/README b/config_host/README index 349c4bc9f158..dd6aa8691f3d 100644 --- a/config_host/README +++ b/config_host/README @@ -20,5 +20,10 @@ Adding a new setting: - add AC_CONFIG_HEADERS([config_host/config_xxx.h]) next to the others in configure.ac - add config_hxx.h to config_host/.gitignore -- add #undef HAVE_FOO to the config_host/config_hxx.h , possibly with a comment -- add #include before any #ifdef HAVE_XXX in a source file +- add #undef HAVE_FOO to the config_host/config_hxx.h , possibly with a comment, + and add the following block right after it +#ifndef HAVE_FOO +#define HAVE_FOO 0 +#endif +- add #include before any #if HAVE_FOO in a source file +- make sure you use #if HAVE_FOO, do not use #ifdef -- cgit