Veena M Shettar wrote:
The following code does not work properly for solaris How to detect solaris platform in c ? The following code displays "Linix" though Im excuting this code on solaris #include<stdio.h> main() { #ifdef _WIN32_ { printf("windows"); } #endif #ifdef __linux__ #define _LINUX_ #endif #ifdef SOLARIS {printf("Solaris"); } #else { printf("Linix"); } #endif }------------------------------------------------------------------------ _______________________________________________ opensolaris-discuss mailing list [email protected]
I find __sun to work w/ both gcc and Sun's compilers. - Bart -- Bart Smaalders Solaris Kernel Performance [EMAIL PROTECTED] http://blogs.sun.com/barts _______________________________________________ opensolaris-discuss mailing list [email protected]
