src/cairo-wideint.h: add preprocessor tests for stdint.h/inttypes.h

src/cairoint.h: add preprocessor tests for stdint.h/inttypes.h
This commit is contained in:
Tor Lillqvist 2005-03-29 11:48:58 +00:00
parent 72cc8f96fe
commit a55a640e54
3 changed files with 26 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2005-03-29 T Rowley <tim.rowley@gmail.com>
* src/cairo-wideint.h: add preprocessor tests for stdint.h/inttypes.h
* src/cairoint.h: add preprocessor tests for stdint.h/inttypes.h
2005-03-29 T Rowley <tim.rowley@gmail.com>
* configure.in: re-enable quartz backend

View file

@ -1,5 +1,5 @@
/*
* $Id: cairo-wideint.h,v 1.6 2005-01-19 15:11:14 cworth Exp $
* $Id: cairo-wideint.h,v 1.7 2005-03-29 19:48:58 tor Exp $
*
* Copyright © 2004 Keith Packard
*
@ -38,7 +38,15 @@
#ifndef CAIRO_WIDEINT_H
#define CAIRO_WIDEINT_H
#include <stdint.h>
#if defined (__SVR4) && defined (__sun)
# include <sys/int_types.h>
#else
# if defined (__OpenBSD__) || defined (_AIX)
# include <inttypes.h>
# else
# include <stdint.h>
# endif
#endif
/*
* 64-bit datatypes. Two separate implementations, one using

View file

@ -54,9 +54,18 @@
#include <string.h>
#include <math.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#if defined (__SVR4) && defined (__sun)
# include <sys/int_types.h>
#else
# if defined (__OpenBSD__) || defined (_AIX)
# include <inttypes.h>
# else
# include <stdint.h>
# endif
#endif
#include "cairo.h"
#if __GNUC__ >= 3 && defined(__ELF__)