Porting Adafruit libs from C++ to C

  adafruit, c++

I’m currently trying to port the AdafruitGFX libs from C++ to C (DynamicC for the Rabbit micro).
Can someone help me with this inline function?
I created a .c .h couple and put a prototype for it in the header but still it actually throws a lot of errors… thanks!

inline GFXglyph *pgm_read_glyph_ptr(const GFXfont *gfxFont, uint8_t c) {
#ifdef __AVR__
  return &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
#else
  return gfxFont->glyph + c;
#endif //__AVR__
}

errors from the compiler

Source: Windows Questions C++

LEAVE A COMMENT