assert() in SANE

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Mon Jun 04 2001 - 13:25:31 PDT

  • Next message: Tim Waugh: "zoom out bug"

    Hi,

    the problems with shared libraries under AIX/gcc turned out to be a
    problem with assert() which is only available for static binaries.

    Please use the wrapper header lassert.h which uses it's own
    implementation of assert() in case of AIX/gcc and just includes
    <assert.h> otherwise.

    So please change

    #include <assert.h>
    to
    #include "../include/lassert.h"

    in your code.

    I have done this for sanei/sanei_scsi.c but there are some backends
    with assert() that I didn't touch.

    The only backend library that doesn't load currenly on AIX because of
    this problem is libsane-hp.

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Mon Jun 04 2001 - 13:32:57 PDT