#ifndef TERM_TYPES_H #define TERM_TYPES_H /* Marks the public functions. The library builds with hidden symbols, so * only these are visible outside a shared build. A host can define it * first, for example as __declspec(dllimport). */ #ifndef TERM_API #if defined(__GNUC__) || defined(__clang__) #define TERM_API __attribute__((visibility("default"))) #else #define TERM_API #endif #endif #ifdef __cplusplus extern "C" { #endif struct term_vector2i { int x, y; }; struct term_span { int begin; int end; }; #ifdef __cplusplus } #endif #endif