mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
include/labwc.h: Provide MIN/MAX macros
This commit is contained in:
parent
9d7386effd
commit
7b48da4ab2
4 changed files with 8 additions and 6 deletions
|
|
@ -61,6 +61,14 @@
|
|||
#define XCURSOR_DEFAULT "left_ptr"
|
||||
#define XCURSOR_SIZE 24
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
enum input_mode {
|
||||
LAB_INPUT_STATE_PASSTHROUGH = 0,
|
||||
LAB_INPUT_STATE_MOVE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue