add definition of OSMO_MIN macro, similar to OSMO_MAX

jolly/7bit_ussd 0.3.5
Harald Welte 12 years ago
parent 7e1a622124
commit 430be84994
  1. 1
      include/osmocom/core/utils.h

@ -3,6 +3,7 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define OSMO_MAX(a, b) (a) >= (b) ? (a) : (b)
#define OSMO_MIN(a, b) (a) >= (b) ? (b) : (a)
#include <stdint.h>

Loading…
Cancel
Save