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

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

 



Ed Hartnett wrote:
I'm just trying to avoid platform-specific lines of code in my C
files.

You've already _got_ platform-specific code. All of the S_* macros are part of the stat() mechanism, which is Unix only. Even if Windows supported it somehow, it would only be an approximation of the native facilities: Windows file permissions are vastly different from Unix ones. If you can't get by without stat() on Unix, you'll have to seek out an equivalent mechanism on Windows.

This problem has been solved many times before. Have you looked into portability libraries like apr? http://apr.apache.org/


_______________________________________________
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