W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2001

HAVE_APPKIT_H check inappropriate for Mac OS X

From: Jake Hamby <jehamby@anobject.com>
Date: Fri, 19 Oct 2001 14:31:06 -0700
To: www-lib@w3.org
Message-Id: <9AB44402-C4D8-11D5-9862-0030655288AC@anobject.com>

Just a quick note regarding a bug I noticed with Libwww on Mac OS X.  
There is a configure check for the presence of <appkit/appkit.h> or 
<appkit.h> (the NeXT Application Kit).  On OS X,  configure sets 
HAVE_APPKIT_APPKIT_H and <appkit/appkit.h> is then included by 

While this unnecessary (as far as I can tell) #include doesn't hurt the 
build of Libwww itself, it causes problems with C++ programs which use 
libwww, as the C++ compiler can't handle the Objective-C syntax in the 
included AppKit headers.  My suggestion would be to remove the 
HAVE_APPKIT checks completely, as they appear to serve no useful value, 
and introduce an unnecessary dependency on an unused library.  The only 
possibility I can think of for their presence is that maybe there was an 
old version of NEXTSTEP that required the AppKit to be included to pick 
up some functionality that would normally be in a more standard header?

Received on Friday, 19 October 2001 17:31:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC