cairo.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. Index: src/cairo-ft.h
  2. --- src/cairo-ft.h.orig 2005-01-20 17:28:54 +0100
  3. +++ src/cairo-ft.h 2005-02-04 21:49:51 +0100
  4. @@ -46,6 +46,10 @@
  5. #include <ft2build.h>
  6. #include FT_FREETYPE_H
  7. +#ifdef __cplusplus
  8. +extern "C" {
  9. +#endif
  10. +
  11. cairo_font_t *
  12. cairo_ft_font_create (FT_Library ft_library, FcPattern *pattern);
  13. @@ -58,5 +62,9 @@
  14. FcPattern *
  15. cairo_ft_font_pattern (cairo_font_t *ft_font);
  16. +#ifdef __cplusplus
  17. +}
  18. +#endif
  19. +
  20. #endif /* CAIRO_HAS_FT_FONT */
  21. #endif /* CAIRO_FT_H */
  22. Index: src/cairo-pdf.h
  23. --- src/cairo-pdf.h.orig 2005-01-20 17:28:54 +0100
  24. +++ src/cairo-pdf.h 2005-02-04 21:49:34 +0100
  25. @@ -42,6 +42,10 @@
  26. #include <stdio.h>
  27. +#ifdef __cplusplus
  28. +extern "C" {
  29. +#endif
  30. +
  31. void
  32. cairo_set_target_pdf (cairo_t *cr,
  33. FILE *file,
  34. @@ -58,5 +62,9 @@
  35. double x_pixels_per_inch,
  36. double y_pixels_per_inch);
  37. +#ifdef __cplusplus
  38. +}
  39. +#endif
  40. +
  41. #endif /* CAIRO_HAS_PDF_SURFACE */
  42. #endif /* CAIRO_PDF_H */
  43. Index: src/cairo-png.h
  44. --- src/cairo-png.h.orig 2005-01-20 17:28:54 +0100
  45. +++ src/cairo-png.h 2005-02-04 21:49:09 +0100
  46. @@ -42,6 +42,10 @@
  47. #include <stdio.h>
  48. +#ifdef __cplusplus
  49. +extern "C" {
  50. +#endif
  51. +
  52. void
  53. cairo_set_target_png (cairo_t *cr,
  54. FILE *file,
  55. @@ -55,5 +59,9 @@
  56. int width,
  57. int height);
  58. +#ifdef __cplusplus
  59. +}
  60. +#endif
  61. +
  62. #endif /* CAIRO_HAS_PNG_SURFACE */
  63. #endif /* CAIRO_PNG_H */
  64. Index: src/cairo-ps.h
  65. --- src/cairo-ps.h.orig 2005-01-20 17:28:54 +0100
  66. +++ src/cairo-ps.h 2005-02-04 21:49:24 +0100
  67. @@ -42,6 +42,10 @@
  68. #include <stdio.h>
  69. +#ifdef __cplusplus
  70. +extern "C" {
  71. +#endif
  72. +
  73. void
  74. cairo_set_target_ps (cairo_t *cr,
  75. FILE *file,
  76. @@ -59,5 +63,9 @@
  77. double x_pixels_per_inch,
  78. double y_pixels_per_inch);
  79. +#ifdef __cplusplus
  80. +}
  81. +#endif
  82. +
  83. #endif /* CAIRO_HAS_PS_SURFACE */
  84. #endif /* CAIRO_PS_H */
  85. Index: src/cairo-xcb.h
  86. --- src/cairo-xcb.h.orig 2005-01-20 17:28:54 +0100
  87. +++ src/cairo-xcb.h 2005-02-04 21:50:13 +0100
  88. @@ -43,6 +43,10 @@
  89. #include <X11/XCB/xcb.h>
  90. #include <X11/XCB/render.h>
  91. +#ifdef __cplusplus
  92. +extern "C" {
  93. +#endif
  94. +
  95. void
  96. cairo_set_target_xcb (cairo_t *cr,
  97. XCBConnection *dpy,
  98. @@ -50,5 +54,9 @@
  99. XCBVISUALTYPE *visual,
  100. cairo_format_t format);
  101. +#ifdef __cplusplus
  102. +}
  103. +#endif
  104. +
  105. #endif /* CAIRO_HAS_XCB_SURFACE */
  106. #endif /* CAIRO_XCB_H */
  107. Index: src/cairo-xlib.h
  108. --- src/cairo-xlib.h.orig 2005-01-20 17:28:54 +0100
  109. +++ src/cairo-xlib.h 2005-02-04 21:48:56 +0100
  110. @@ -42,6 +42,10 @@
  111. #include <X11/extensions/Xrender.h>
  112. +#ifdef __cplusplus
  113. +extern "C" {
  114. +#endif
  115. +
  116. /* XXX: This shold be renamed to cairo_set_target_xlib to match the
  117. * other backends */
  118. void
  119. @@ -66,6 +70,10 @@
  120. cairo_xlib_surface_set_size (cairo_surface_t *surface, int width, int height);
  121. */
  122. +#ifdef __cplusplus
  123. +}
  124. +#endif
  125. +
  126. #endif /* CAIRO_HAS_XLIB_SURFACE */
  127. #endif /* CAIRO_XLIB_H */
  128. Index: src/cairoint.h
  129. --- src/cairoint.h.orig 2005-03-04 18:57:54 +0100
  130. +++ src/cairoint.h 2005-03-30 17:39:07 +0200
  131. @@ -54,7 +54,16 @@
  132. #include <string.h>
  133. #include <math.h>
  134. #include <limits.h>
  135. -#include <stdint.h>
  136. +
  137. +#if defined (__SVR4) && defined (__sun)
  138. +# include <sys/int_types.h>
  139. +#else
  140. +# if defined (__OpenBSD__) || defined (__FreeBSD__)
  141. +# include <inttypes.h>
  142. +# else
  143. +# include <stdint.h>
  144. +# endif
  145. +#endif
  146. #include "cairo.h"
  147. Index: src/cairo-wideint.h
  148. --- src/cairo-wideint.h.orig 2005-02-22 20:24:50 +0100
  149. +++ src/cairo-wideint.h 2005-03-30 17:42:19 +0200
  150. @@ -38,7 +38,15 @@
  151. #ifndef CAIRO_WIDEINT_H
  152. #define CAIRO_WIDEINT_H
  153. -#include <stdint.h>
  154. +#if defined (__SVR4) && defined (__sun)
  155. +# include <sys/int_types.h>
  156. +#else
  157. +# if defined (__OpenBSD__) || defined (__FreeBSD__)
  158. +# include <inttypes.h>
  159. +# else
  160. +# include <stdint.h>
  161. +# endif
  162. +#endif
  163. /*
  164. * 64-bit datatypes. Two separate implementations, one using