summaryrefslogtreecommitdiff
path: root/src/cairo-wideint.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-10 12:42:32 +0000
committerCarl Worth <cworth@cworth.org>2005-05-10 12:42:32 +0000
commit3253534a824cf3b81ea5b6abeaea0e4b414834d2 (patch)
tree7ca5be4f95530e73439a0c66fceff1a2322f5dbf /src/cairo-wideint.h
parentc66ca528e037381f485b53bb36b2e9a735c2b8f5 (diff)
Don't guess and make our own definitions for uint8_t, etc. Just error out if we can't find a suitable header file.
Fix to use fixed-size type so that this code works when sizeof(unsigned long) != 32. Thanks to Manish Singh.
Diffstat (limited to 'src/cairo-wideint.h')
-rw-r--r--src/cairo-wideint.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cairo-wideint.h b/src/cairo-wideint.h
index bb52b8a6..3afea5a6 100644
--- a/src/cairo-wideint.h
+++ b/src/cairo-wideint.h
@@ -1,5 +1,5 @@
/*
- * $Id: cairo-wideint.h,v 1.9 2005-04-07 22:00:46 cworth Exp $
+ * $Id: cairo-wideint.h,v 1.10 2005-05-10 19:42:32 cworth Exp $
*
* Copyright © 2004 Keith Packard
*
@@ -45,12 +45,7 @@
#elif HAVE_SYS_INT_TYPES_H
# include <sys/int_types.h>
#else
-typedef signed char int8_t;
-typedef short int16_t;
-typedef long int32_t;
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned long uint32_t;
+#error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)
#endif
/*