diff options
author | Dom Lachowicz <doml@src.gnome.org> | 2008-04-25 19:35:05 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2008-04-25 19:35:05 +0000 |
commit | 7b4df28e87307edf95df7a6f950bcbe4753bbf63 (patch) | |
tree | 1b2a8cd6603b617f19ea5cb0d11003ef5ac3b12b | |
parent | 4999aab0cc7c29423ea7935001e5c7edce003559 (diff) | |
download | librsvg-7b4df28e87307edf95df7a6f950bcbe4753bbf63.tar.gz |
528804 - tests don't honor have_stdint_h. use glib-based equivalents
svn path=/trunk/; revision=1161
-rw-r--r-- | tests/pdiff/pdiff.c | 15 | ||||
-rw-r--r-- | tests/pdiff/perceptualdiff.c | 13 |
2 files changed, 27 insertions, 1 deletions
diff --git a/tests/pdiff/pdiff.c b/tests/pdiff/pdiff.c index 91e0cafe..6e665ae0 100644 --- a/tests/pdiff/pdiff.c +++ b/tests/pdiff/pdiff.c @@ -16,11 +16,24 @@ #define _GNU_SOURCE +#include "config.h" + +#ifdef HAVE_STDINT_H +#include <stdint.h> +#else +#include <glib.h> +typedef gint8 int8_t; +typedef guint8 uint8_t; +typedef gint16 int16_t; +typedef guint16 uint16_t; +typedef gint32 int32_t; +typedef guint32 uint32_t; +#endif + #include "lpyramid.h" #include <math.h> #include <stdio.h> #include <stdlib.h> -#include <stdint.h> #include "pdiff.h" #ifndef M_PI diff --git a/tests/pdiff/perceptualdiff.c b/tests/pdiff/perceptualdiff.c index ec9219a1..b7c0f278 100644 --- a/tests/pdiff/perceptualdiff.c +++ b/tests/pdiff/perceptualdiff.c @@ -16,8 +16,21 @@ if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "config.h" #include <stdio.h> + +#ifdef HAVE_STDINT_H #include <stdint.h> +#else +#include <glib.h> +typedef gint8 int8_t; +typedef guint8 uint8_t; +typedef gint16 int16_t; +typedef guint16 uint16_t; +typedef gint32 int32_t; +typedef guint32 uint32_t; +#endif + #include <string.h> #include <math.h> #include "lpyramid.h" |