Next: Portability guidelines, Previous: Indent with spaces not TABs, Up: Contributing to Gnulib [Contents][Index]
You can test that a module builds correctly with:
$ ./gnulib-tool --create-testdir --dir=/tmp/testdir module1 ... moduleN $ cd /tmp/testdir $ ./configure && make
Other things:
alloca
and fnmatch
modules for how to achieve this. If
for some reason you cannot do this, and you have a .c file that
leads to an empty .o file on some platforms (through some big
#if
around all the code), then ensure that the compilation unit
is not empty after preprocessing. One way to do this is to
#include <stddef.h>
or <stdio.h>
before the big
#if
.
Next: Portability guidelines, Previous: Indent with spaces not TABs, Up: Contributing to Gnulib [Contents][Index]