#273 Name collision when building with Sun Studio 11 on Solaris

0.65
closed
None
5
2012-09-07
2006-10-14
laurent
No

When building on Solaris 10 w/ Sun Studio 11, I got a
name collision on OVERFLOW in mpu401.cpp.

For some reason, it seems that math.h gets included,
when it was not with GCC:
/usr/include/math.h:#define OVERFLOW 3

Which collided with:
enum MpuDataType
{OVERFLOW,MARK,MIDI_SYS,MIDI_NORM,COMMAND};

See an attached patch proposition with OVERFLOW
prefixed with DB_.

Discussion

  • laurent
    laurent
    2006-10-14

    Modifies OVERFLOW to DB_OVERFLOW to avoid name collision

     
    Attachments
  • Peter Veenstra
    Peter Veenstra
    2006-10-23

    Logged In: YES
    user_id=535630

    The bug has been fixed.
    Wait for the upcoming new version to see it.

    Or:

    The updated source is available by cvs.

    See the link on top of the screen for information on how to get
    the new sources.

    The DOSBox Team