Skip to content

Commit 54bb0c1

Browse files
committed
fpi-image: Check for PIXMAN presency using #ifdef
That's a defined variable that may be there or not, and currently we warn with: - fpi-image.c:29:5: warning: "HAVE_PIXMAN" is not defined, evaluates to 0
1 parent 1f1ed80 commit 54bb0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libfprint/fpi-image.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <nbis.h>
2727

28-
#if HAVE_PIXMAN
28+
#ifdef HAVE_PIXMAN
2929
#include <pixman.h>
3030
#endif
3131

@@ -107,7 +107,7 @@ fpi_mean_sq_diff_norm (const guint8 *buf1,
107107
return res / size;
108108
}
109109

110-
#if HAVE_PIXMAN
110+
#ifdef HAVE_PIXMAN
111111
FpImage *
112112
fpi_image_resize (FpImage *orig_img,
113113
guint w_factor,

0 commit comments

Comments
 (0)