cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Include path problem

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Mon, 31 Aug 2009 12:49:33 +0200

 
Daniel Stenberg wrote:
> If we make that an include without curl/ we need to add a -I to the
lib's Makefile.

I don't think so: curlbuild.h is included from lib/setup.h,
packages/OS400/os400sys.c and include/curl/curl.h.
In lib/setup.h, it is included as <curl/curlbuild.h>: this is ok and
does not cause any problem to me.
In packages/OS400/os400sys.c... Well, this is my job and it's ok as
"curlbuild.h" !
In include/curl/curl.h, it is included as "curl/curlbuild.h". This is
the one I want to change. I think it should always work without the
leading curl/, since the included file is in the same subdirectory as
the including file, AFAIK.

In fact, inclusions in include/curl/* are of the form "xxx.h" (except
for curlbuild.h), while they are of the form <curl/xxx.h> from files in
other directories. This would be perfectly OK for me without the
curlbuild.h exception.
Received on 2009-08-31