Re: can autoconf determine if a preprocessor macro is defined or not?

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

 



Bob Friesenhahn <bfriesen@xxxxxxxxxxxxxxxxxxx> writes:

> On Thu, 27 Jul 2006, Ed Hartnett wrote:
>>
>> Here's what I had to add to get my code to build. I would prefer if
>> autoconf could add this to config.h, for example:
>>
>> /* These are needed on mingw to get a dll to compile. They really
>> * should be provided in sys/stats.h, but what the heck. Let's not be
>> * too picky! */
>> #ifndef S_IRGRP
>> #define S_IRGRP   0000040
>> #endif
>> #ifndef S_IROTH
>> #define S_IROTH   0000004
>> #endif
>> #ifndef S_IWGRP
>> #define S_IWGRP   0000020
>> #endif
>> #ifndef S_IWOTH
>> #define S_IWOTH   0000002
>> #endif
>
> As Keith says, these make no sense for Windows.  Since these values
> are usually ORed, a simple solution is to use code as you show above
> but define them all to have the value zero.  This allows existing Unix
> code to compile without being hacked up.

Thanks, I will do as you suggest.

Ed
-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux