allow building against < 10.3 SDK.

This commit is contained in:
Tor Lillqvist 2005-06-21 09:54:58 +00:00
parent adee31be18
commit 7283ba6d47
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2005-06-21 T Rowley <tim.rowley@gmail.com>
* src/cairo-atsui-font.c: allow building against < 10.3 SDK.
2005-06-20 Carl Worth <cworth@cworth.org>
* configure.in: Add -head to CAIRO_VERSION after tagging with

View file

@ -38,7 +38,19 @@
#include "cairo-atsui.h"
#include "cairoint.h"
#include "cairo.h"
#if 0
#include <iconv.h>
#endif
/*
* FixedToFloat/FloatToFixed are 10.3+ SDK items - include definitions
* here so we can use older SDKs.
*/
#ifndef FixedToFloat
#define fixed1 ((Fixed) 0x00010000L)
#define FixedToFloat(a) ((float)(a) / fixed1)
#define FloatToFixed(a) ((Fixed)((float)(a) * fixed1))
#endif
typedef struct {
cairo_scaled_font_t base;