Ethereal-dev: [Ethereal-dev] lot's of warnings: redefinition of symbol 'OPTIONAL'

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ulf Lamping" <ulf.lamping@xxxxxx>
Date: Wed, 8 Oct 2003 17:08:11 +0200
Hi List!

When I'm trying to compile with msvc, I'm getting lot's of warnings like this:

packet-per.h(41) : warning C4005: 'OPTIONAL' : Makro-Neudefinition
        E:\PROGRA~1\MICROS~3\VC98\INCLUDE\rpcdce.h(24) : Siehe vorherige Definition von 'OPTIONAL'
		
(translated to english something like: redefinition of symbol 'OPTIONAL')

As the name OPTIONAL isn't very unique, I would suggest to rename OPTIONAL in file packet-per.h to something like PER_OPTIONAL or such and change the .c files using this define.

This task will be much easier for someone compiling on a unix machine (on msvc you won't get an undefined error :-( and being able to check in sources directly, so I didn't made a patch on this topic.

Of course, it would be also a good idea to rename the other similiar defines in the file packet-per.h to something more unique... :-)

Regards, ULFL
______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110