PellesC can't compile this without error message:
//#define ALLEGRO_SRC
//#define ALLEGRO_STATICLINK
/* describe how function prototypes look to MSVC */
#if (defined ALLEGRO_STATICLINK) || (defined ALLEGRO_SRC)
#define _AL_DLL
#else
#define _AL_DLL __declspec(dllimport)
#endif
#ifdef AL_INLINE
#define END_OF_INLINE(name) void *_force_instantiate_##name = name;
#else
#define END_OF_INLINE(name)
#endif
#undef AL_INLINE
#define AL_INLINE(type, name, args, code) __inline _AL_DLL type __cdecl name args code END_OF_INLINE(name)
#define INLINE __inline
AL_INLINE(void, foo1, (int* addr, int c),
{
return;
})
__inline __declspec(dllimport) void __cdecl foo2(int* addr, int c){ return; }