Methods to build cross platform libraries ?

Hi,

I'm trying to build using some existing libraries (MPU6060 in this case), which have

#include <avr/pgmspace.h>

I'd still like to be able to build for both AVR and ARM (I'm using an STM32F103C8T6), so will need to do conditional compilation.

Is there a way I can look for all AVR variants something like

#if defined(AVR)
#include <avr/pgmspace.h>
#endif

???