Ethereal-dev: [Ethereal-dev] Some Win32 compiler warnings removed (redifinitions)

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: Thu, 29 Aug 2002 15:53:02 +0200
Hi List!

Find attached some diffs to eliminate a bunch of compiler warnings (Visual C) of redefinitions.

Example: in packet-gtp.c the #define OPTIONAL is already defined by a windows internal header file.
(But this definition will not have the same meaning and value :-(

In order to fix this type of problems, I prepended a meaningful word, 
in this case the definition is now GTP_OPTIONAL.

Of course, I also changed the usage of this definitions (hopefully I found every place ;-).

It would be a got idea to test compiling these patches with a none win32 machine, in case I have missed
a place.

Regards, ULFL

______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104

Attachment: warnings.zip
Description: Zip compressed data