#35 Allows cvs (2.3.x) to compile with GCC 3.3

closed-fixed
nobody
None
5
2004-08-28
2004-08-18
Jim Bentler
No

GCC 3.3 is more picky about syntax, so a few changes are
necessary to get things to compile.

First, the uint_64_t constants needed to have ULL appended to
the end of them to indicate that they are unsigned long longs. For
example, "#define MF_SPECIAL (uint_64_t)
(0x0000000000000001)" became "#define MF_SPECIAL
(uint_64_t)(0x0000000000000001UL)".

Second, static variables may only be initialized to constants. I
have attached a diff for the current 2.3.x branch with the
necessary changes to get it to compile in gcc 3.3.

Discussion

  • Jim Bentler
    Jim Bentler
    2004-08-18

    patch to allow cvs (2.3.x) to compile with GCC 3.3

     
    Attachments
  • Logged In: NO

    The ULL part doesn't work in Visual C++ 6.0. Maybe this needs
    to be wrapped in a macro somehow? Or it needs to be ifdefed.

     
  • Logged In: YES
    user_id=18721

    If added an ifdef USE_ULL_SUFFIX in revision 1086. What
    remains to be done, is a test in configure.in. I don't know
    enough about configure.in to do it myself.

     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=18721

    A test was added to configure.in in revision 1113.