summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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