[int] Define MIN/MAX/ABS macros
This commit is contained in:
parent
b393846860
commit
6b1fc678ca
|
@ -2537,9 +2537,6 @@ FcFreeTypeCheckGlyph (FT_Face face, FcChar32 ucs4,
|
|||
return FcFalse;
|
||||
}
|
||||
|
||||
#define FC_MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
#define FC_MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#define FC_ABS(a) ((a) < 0 ? -(a) : (a))
|
||||
#define APPROXIMATELY_EQUAL(x,y) (FC_ABS ((x) - (y)) <= FC_MAX (FC_ABS (x), FC_ABS (y)) / 33)
|
||||
|
||||
static FcCharSet *
|
||||
|
|
|
@ -111,6 +111,10 @@
|
|||
#define FC_BANK_FIRST 1
|
||||
#define FC_BANK_LANGS 0xfcfcfcfc
|
||||
|
||||
#define FC_MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
#define FC_MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#define FC_ABS(a) ((a) < 0 ? -(a) : (a))
|
||||
|
||||
/* slim_internal.h */
|
||||
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
|
||||
#define FcPrivate __attribute__((__visibility__("hidden")))
|
||||
|
|
Loading…
Reference in New Issue