summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-06-12 11:12:14 +0000
committerBruno Haible <bruno@clisp.org>2003-06-12 11:12:14 +0000
commitc947ae968b9fdb7a65f1481b7c7ec68e6a0d3abc (patch)
treeda490d8f020257ed78a5b8e56a62192fc3f47f59 /README
parent74a8efa85c28b5b1d1aae410b522b20074d96161 (diff)
downloadgnulib-c947ae968b9fdb7a65f1481b7c7ec68e6a0d3abc.tar.gz
Add a note about empty files.
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 6 insertions, 0 deletions
diff --git a/README b/README
index 3dcdda8eb2..91505c5cfc 100644
--- a/README
+++ b/README
@@ -64,6 +64,12 @@ Other things:
* 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
============