In my code, I use a header file, which, unfortunately, has a different location on different Linux distributions.
In my case, this is fitsio.h from cfitsio, which is here in OpenSUSE 12.1:
#include <cfitsio/fitsio.h>
and here in Arch Linux:
#include <fitsio.h>
I think I can use some preprocessor directives to create the switch. I can use this for testing if I am on Linux or Windows, etc., but I donβt know what I can use to check if I am on Arch Linux or not.
Or is there another way / strategy to handle this case?
source share