[sane-devel] lib functions and empty files
Oliver Rauch
oliver.rauch@rauch-domain.de
Fri, 08 Feb 2002 23:12:26 +0100
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@rauch-domain.de