chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] chicken-config.h in chicken.h


From: felix
Subject: Re: [Chicken-users] chicken-config.h in chicken.h
Date: Wed, 07 Jul 2004 23:55:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Daniel B. Faken wrote:
Hi Felix,

It seems like chicken-config.h shouldn't be included via chicken.h, since it contains definitions for the Chicken "Package", which should only be defined for the internal source files. I noticed this b/c I was compiling another "configure" package which had its own definitions conflicting with Chicken's.. but I wanted to use chicken.h within one of its modules.

One way to do this seems to be manually #include'ing <chicken-config.h> in each source file, but perhaps the current #include could just be surrounded by #ifdef __CHICKEN_INTERNAL__ or something similar (with -D__CHICKEN_INTERNAL__ in the makefile).


Urgh. You're right. Unfortunately chicken-config will be needed to
correctly compile certain things (like alloca - it might need an extra
header on some systems) that use the Chicken API.
I've removed the "generic" things from chicken-config.h.in (VERSION,
PACKAGE, etc.). I hope this will help a little.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]