diff options
author | Ran Benita <ran@unusedvar.com> | 2019-12-27 12:34:49 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-12-27 12:34:49 +0200 |
commit | 34122f9f064bff220e066a036315daa0778cfd54 (patch) | |
tree | 5adb88e17aed98d692064f0cdd9914742b999bad /src/x11 | |
parent | ade131307c7fda83707d615216831a056f9d1c98 (diff) | |
download | xorg-lib-libxkbcommon-34122f9f064bff220e066a036315daa0778cfd54.tar.gz |
utils: use MIN/MAX instead of min/max
min/max symbols conflict on some systems (msvc), so just use the macros.
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/util.c b/src/x11/util.c index c41f1d6..b709bf2 100644 --- a/src/x11/util.c +++ b/src/x11/util.c @@ -164,7 +164,7 @@ adopt_atoms(struct xkb_context *ctx, xcb_connection_t *conn, /* Send and collect the atoms in batches of reasonable SIZE. */ for (size_t batch = 0; batch < num_batches; batch++) { const size_t start = batch * SIZE; - const size_t stop = min((batch + 1) * SIZE, count); + const size_t stop = MIN((batch + 1) * SIZE, count); /* Send. */ for (size_t i = start; i < stop; i++) |