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

Can't find includes to silence warnings



On Sunday, March 3, 2002, at 10:40  AM, Kim Foo-Jones wrote:

> On Saturday, March 2, 2002, at 09:43 , Matt Watson wrote:
>
>> On Saturday, March 2, 2002, at 01:15  PM, Finlay Dobbie wrote:
>>
>>> #include <unistd.h> (or #import if you're using Obj-C).
>>
>> Don't #import <unistd.h> -- it already has multiple-include protection:
>>
>> #ifndef _UNISTD_H_
>> #define _UNISTD_H_
>
> Why is it necessary to avoid #import in this case?

It's not necessary to avoid it, it's just not as efficient to use it, 
since the multiple-include issue is already taken care of in the header 
directly, so using #import is redundant.

matt.