How to identify the platform & compiler while compiling?



Is there a way to find the platform and compiler name during compile
time so that conditional compilation can be performed in C? thanks.

.