Hi,

This is a classical mistake due to the ubiquitous use of autotools.

There are several solutions.

I suggest a workaround that you can apply directly in GoQat: when you
include xpa.h, do this:


// undefine HAVE_CONFIG, but remember it was set
#ifdef HAVE_CONFIG_H
# define HAD_CONFIG_H
# undef HAVE_CONFIG_H
#endif

// actually include buggy header
#include "xpa.h"

// if needed, re-define HAVE_CONFIG
#ifdef HAD_CONFIG_H
# define HAVE_CONFIG_H
# undef HAD_CONFIG_H
#endif

This is ugly, but it will allow you to compile with buggy versions of xpa.h.


On the longer run, xpa.h should indeed not include conf.h (which is
presumably only available when building xpa itself), or it should
protect this inclusion with a better qualified macro, e.g. :

#if HAVE_XPA_CONFIG_H
#include "conf.h"
#endif

Kind regards, Thibaut.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to