summaryrefslogtreecommitdiff
path: root/src/cairo-wideint-private.h
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-09-04 15:18:34 -0700
committerAndrea Canciani <ranma42@gmail.com>2011-09-04 16:23:37 -0700
commited84cb522cc9a65ac89b2b008010ecfe78dde7de (patch)
tree2b287f23b418bb221597847f99d317776c2e66de /src/cairo-wideint-private.h
parent01729606fb5026ca5b4c8ac67a083c065be8d7a0 (diff)
wideint: Fix build on suncc
"static cairo_private" means nothing and suncc complains loudly about it. The visibility of _cairo_double_to_uint64() and _cairo_uint64_to_double() should just be "static".
Diffstat (limited to 'src/cairo-wideint-private.h')
-rw-r--r--src/cairo-wideint-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-wideint-private.h b/src/cairo-wideint-private.h
index 53d2546e..f6ae5bcf 100644
--- a/src/cairo-wideint-private.h
+++ b/src/cairo-wideint-private.h
@@ -112,8 +112,8 @@ _cairo_uint64_divrem (cairo_uint64_t num, cairo_uint64_t den)
* warning: cast from function call of type ‘#cairo_uint64_t’ to
* non-matching type ‘double’
*/
-static cairo_always_inline cairo_uint64_t I _cairo_double_to_uint64 (double i) { return i; }
-static cairo_always_inline double I _cairo_uint64_to_double (cairo_uint64_t i) { return i; }
+static cairo_always_inline cairo_const cairo_uint64_t _cairo_double_to_uint64 (double i) { return i; }
+static cairo_always_inline cairo_const double _cairo_uint64_to_double (cairo_uint64_t i) { return i; }
#define _cairo_uint32_to_uint64(i) ((uint64_t) (i))
#define _cairo_uint64_to_uint32(i) ((uint32_t) (i))