Re: [hatari-devel] error: redefinition of typedef ‘uae_u8’ etc.

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sat, 31 Dec 2016 16:09:00 -0700 (MST)
schrieb David Savinkoff <dsavnkff@xxxxxxxxx>:

> [  2%] Building C object src/CMakeFiles/Floppy.dir/msa.c.o
> In file included from hatari.6467/src/msa.c:18:
> hatari.6467/src/cpu/sysdeps.h:181: error: redefinition of typedef
> ‘uae_u8’ hatari.6467/src/cpu/uae/types.h:26: note: previous
> declaration of ‘uae_u8’ was here hatari.6467/src/cpu/sysdeps.h:182:
> error: redefinition of typedef ‘uae_s8’
> hatari.6467/src/cpu/uae/types.h:25: note: previous declaration of
> ‘uae_s8’ was here hatari.6467/src/cpu/sysdeps.h:183: error:
> redefinition of typedef ‘uae_char’
> hatari.6467/src/cpu/uae/types.h:63: note: previous declaration of
> ‘uae_char’ was here hatari.6467/src/cpu/sysdeps.h:188: error:
> redefinition of typedef ‘uae_u16’ hatari.6467/src/cpu/uae/types.h:29:
> note: previous declaration of ‘uae_u16’ was here
> hatari.6467/src/cpu/sysdeps.h:189: error: redefinition of typedef
> ‘uae_s16’ hatari.6467/src/cpu/uae/types.h:28: note: previous
> declaration of ‘uae_s16’ was here hatari.6467/src/cpu/sysdeps.h:198:
> error: redefinition of typedef ‘uae_u32’
> hatari.6467/src/cpu/uae/types.h:32: note: previous declaration of
> ‘uae_u32’ was here hatari.6467/src/cpu/sysdeps.h:199: error:
> redefinition of typedef ‘uae_s32’ hatari.6467/src/cpu/uae/types.h:31:
> note: previous declaration of ‘uae_s32’ was here
> hatari.6467/src/cpu/sysdeps.h:207: error: redefinition of typedef
> ‘uaecptr’ hatari.6467/src/cpu/uae/types.h:56: note: previous
> declaration of ‘uaecptr’ was here

Yes ... this has been reported a couple of times already, it happens on
some systems because there are different definitions of these types in
sysdeps.h and uae/types.h. I've now committed a fix (disabled the type
definitions in sysdeps.h and always rely on the ones from uae/types.h),
could you please try again if it is working right for you now?

A question for Toni: Is there a reason for the different type
definitions in WinUAE? Or could you also just #include "uae/types.h"
from sysdeps.h and drop the definitions in sysdeps.h ?

 Happy new year,
  Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/