[sane-devel] lib functions and empty files

Oliver Rauch oliver.rauch at rauch-domain.de
Fri Feb 8 22:12:26 GMT 2002


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 to define a variable.

#ifndef HAVE_XYZ
...
#else
#define ALREADY_HAVE_XYZ
#endif

Bye
Oliver

-- 
Homepage:	http://www.rauch-domain.de
sane-umax:	http://www.rauch-domain.de/sane-umax
xsane:		http://www.xsane.org
E-Mail:		mailto:Oliver.Rauch at rauch-domain.de



More information about the sane-devel mailing list