22 lines
402 B
C
22 lines
402 B
C
#ifndef IVY_COMMON_MISC_H_
|
|
#define IVY_COMMON_MISC_H_
|
|
|
|
struct ivy_char_cell {
|
|
unsigned long c_row, c_col;
|
|
};
|
|
|
|
#if defined(_MSC_VER) && IVY_STATIC == 0
|
|
#ifdef IVY_EXPORT
|
|
#define IVY_API extern __declspec(dllexport)
|
|
#else
|
|
#define IVY_API extern __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define IVY_API extern
|
|
#endif
|
|
|
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
|
|
|
#endif
|