tomolt / libschrift

A lightweight TrueType font rendering library
ISC License
471 stars 32 forks source link

C++ support #8

Closed Condzi closed 4 years ago

Condzi commented 4 years ago

Hello! I had to add following code to make compiling in C++ possible. I think it should be added to the library. In schrift.h:

// Just before first struct declarations
#ifdef __cplusplus
extern "C" {
#endif

// (schrift.h code here...)

// Before the last #endif
#ifdef __cplusplus
}
#endif
tomolt commented 4 years ago

Hi, I just want to let you know that this going into the library as soon as I have the time.

tomolt commented 4 years ago

Done as of b48359e (on the v0.8 branch only).