Hey guys.
I seem to have a small problem.
I want to make a condition in the c preprocessor, that if it is a specific system I need to do something.
I have FreeBSD and SunOS. I need it to do:
#if this_system_is_SUN
#define IS_SUN 1
#else
#define IS_SUN 0
#endif
I am a noob when it comes to c preprocessing.
2nd problem:
How can I specify this also for the makefile?
If its SUN I need it to execute /usr/sfw/bin/gcc and if it is FreeBSD I need it to be just gcc.
Thank you!