|
7/8 |
2003/11/26-27 [Computer/SW/OS/FreeBSD] UID:29671 Activity:nil 88%like:11228 |
11/26 what preprocessor macro is defind on FreeBSD so that I can write conditional code only for FreeBSD? i am using gcc... What about solaris? Thanks. \_ You can use __FreeBSD__ and __sun to tell the difference between FreeBSD and Solaris; you can also use __i386 and __sparc if you want to know the CPU type. (These all work with Sun's C compiler as well as with gcc.) --mconst |