[cairo-bugs] [Bug 15343] New: cairo-fixed-private.h: LL suffix is not supported in MSVC6

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 3 11:40:23 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=15343

           Summary: cairo-fixed-private.h: LL suffix is not supported in
                    MSVC6
           Product: cairo
           Version: 1.5.16
          Platform: All
        OS/Version: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: iwm at maid.org
         QAContact: cairo-bugs at cairographics.org


In cairo-fixed-private.h(104), 'LL' is used as 64-bit integer-suffix.
But 'LL' is not supported in MSVC6.
We must use 'i64' suffix in MSVC.

I suggest the following macro.
#ifdef _MSC_VER
# define CAIRO_MAGIC_NUMBER_FIXED ((1i64 << (52 - CAIRO_FIXED_FRAC_BITS)) *
1.5)
#else
# define CAIRO_MAGIC_NUMBER_FIXED ((1LL << (52 - CAIRO_FIXED_FRAC_BITS)) * 1.5)
#endif


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list