[sane-devel] lib functions and empty files

2002-02-08 Thread Oliver Rauch
Henning Meier-Geinitz wrote: > > Hi, > > The files in the lib/ directory usually look like the following: > > #ifndef HAVE_SOME_FUNCTION > int > some_function (int i) > { > some_code; > } > #endif > #else > static int some_variable; > #endif does work something like this? then we do not have

[sane-devel] lib functions and empty files

2002-02-08 Thread Steve M. Robbins
On Fri, Feb 08, 2002 at 10:44:11PM +0100, Henning Meier-Geinitz wrote: > If the function is already available by the system, the source file is > empty. At least gcc complains about this in "-ansi" mode and even > aborts compilation on at least one platform (OS/2 with gcc3.x). If someone got ambi

[sane-devel] lib functions and empty files

2002-02-08 Thread Henning Meier-Geinitz
Hi, The files in the lib/ directory usually look like the following: #ifndef HAVE_SOME_FUNCTION int some_function (int i) { some_code; } #endif If the function is already available by the system, the source file is empty. At least gcc complains about this in "-ansi" mode and even aborts compil