librsvg r1161 - trunk/tests/pdiff
- From: doml svn gnome org
- To: svn-commits-list gnome org
- Subject: librsvg r1161 - trunk/tests/pdiff
- Date: Fri, 25 Apr 2008 20:35:05 +0100 (BST)
Author: doml
Date: Fri Apr 25 19:35:05 2008
New Revision: 1161
URL: http://svn.gnome.org/viewvc/librsvg?rev=1161&view=rev
Log:
528804 - tests don't honor have_stdint_h. use glib-based equivalents
Modified:
trunk/tests/pdiff/pdiff.c
trunk/tests/pdiff/perceptualdiff.c
Modified: trunk/tests/pdiff/pdiff.c
==============================================================================
--- trunk/tests/pdiff/pdiff.c (original)
+++ trunk/tests/pdiff/pdiff.c Fri Apr 25 19:35:05 2008
@@ -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
Modified: trunk/tests/pdiff/perceptualdiff.c
==============================================================================
--- trunk/tests/pdiff/perceptualdiff.c (original)
+++ trunk/tests/pdiff/perceptualdiff.c Fri Apr 25 19:35:05 2008
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]