changeset 4396:ca90cd92b340

Add a note about empty files.
author Bruno Haible <bruno@clisp.org>
date Thu, 12 Jun 2003 11:12:14 +0000
parents cbadaf82e39b
children c6450308f123
files README
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README
+++ b/README
@@ -64,6 +64,12 @@
 * Try to prevent that the files are built if they aren't needed on a
   platform.  Valid excuses to this rule include ELIDE constructs that
   lead to an empty .o file (see getopt module).
+* If you have a .c file that leads to an empty .o file on some platforms
+  (through some big #if around all the code), still make sure that after
+  preprocessing the compilation unit is not empty. This is usually fulfilled
+  if you #include <stdio.h> or #include <sys/types.h> before the big #if;
+  otherwise you need to add a #else branch containing "typedef int dummy;"
+  or "extern int dummy;".
 
 High Quality
 ============