I'm developing an API multi platform in C language and I need to know if there is a way to know which OS is compiling it.
For example, through an pre compilation directive like that follows:
#ifdef LINUX
#include<linuxlib.h>
#elif OSX
#include<osxlib.h>
#elif WINDOWS
#include<rwindowslib.h>