Re: [hatari-devel] Compile error, zip.c

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


Hi,

On tiistai 05 kesäkuu 2012, Uwe Seimet wrote:
> I get this compile error with gcc 4.5.3 on a Linux x86_64 machine:
> 
> [  1%] Building C object src/CMakeFiles/Floppy.dir/zip.c.o
> In file included from /home/us/hatari/hatari/src/zip.c:26:0:
> /home/us/hatari/hatari/src/includes/unzip.h:122:45: error: expected ‘=’,
> ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’

Line 122 looks like this:
extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,                                                                                              
                                                 const char* fileName2,                                              
                                                 int iCaseSensitivity));

What happens if you comment it out?


"ZEXPORT" & "OF" come from your /usr/include/zconf.h and look
like this on my machine:
---------
#ifndef ZEXPORT
#  define ZEXPORT
#endif
....
#ifndef OF /* function prototypes */
#  ifdef STDC
#    define OF(args)  args
#  else
#    define OF(args)  ()
#  endif
#endif
---------

If you for some wierd reason have some Windows or BeOS defines
enabled in your build, ZEXPORT will probably be bogus.


	- Eero



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