summaryrefslogtreecommitdiff
path: root/config_host
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-03-18 17:10:39 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-03-18 17:15:57 +0100
commit30844869ccc3109a747f6ec8e94789af39688f6b (patch)
treed153ccf5c57235162025a411bd790688a7dba667 /config_host
parent1af22c05c6b1bb2cee534146d9049da0c7e0f9bc (diff)
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
Diffstat (limited to 'config_host')
-rw-r--r--config_host/README9
1 files changed, 7 insertions, 2 deletions
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 <config_xxx.h> 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 <config_xxx.h> before any #if HAVE_FOO in a source file
+- make sure you use #if HAVE_FOO, do not use #ifdef