diff options
Diffstat (limited to 'include/term/term_types.h')
| -rw-r--r-- | include/term/term_types.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/term/term_types.h b/include/term/term_types.h new file mode 100644 index 0000000..78be371 --- /dev/null +++ b/include/term/term_types.h @@ -0,0 +1,32 @@ +#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 |
