Nmap Development mailing list archives
Re: Use of ISO646 feature
From: David Fifield <david () bamsoftware com>
Date: Sun, 5 Apr 2015 17:35:13 -0700
On Sun, Apr 05, 2015 at 07:31:12PM -0500, Daniel Miller wrote:
Gisle, On Sun, Apr 5, 2015 at 7:43 AM, Gisle Vanem <[1]gvanem () yahoo no> wrote: While compiling Nnap (latest SVN-repo version) using MSVC v18, I see this: cl -nologo .. -c TargetGroup.cc TargetGroup.cc(641) : error C2146: syntax error : missing ')' before identifier 'or' TargetGroup.cc(641) : error C2065: 'or' : undeclared identifier (gcc includes iso646.h/ciso646 internally). So can you please add a '#include <ciso646>' somewhere? Or just drop those IMHO silly ISO/C++ features. The history of TargetGroup.cc: [2]https://github.com/nmap/nmap/commits/master/TargetGroup.cc don't indicate when this was added. Is the version at Github unrelated to the real thing at [3]svn.nmap.org/nmap? I'm sorry, I introduced this on 11 March in r34089. I did not intend to use such an odd feature, and I'm surprised it compiled at all. My mind must not have been working in C mode. Do you know of a good way to check for non-standard features like this that I could add to my commit hooks?
I've done this before too, like in r25054. It works in GCC so I didn't notice right away. David _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Use of ISO646 feature Gisle Vanem (Apr 05)
- Re: Use of ISO646 feature Daniel Miller (Apr 05)
- Re: Use of ISO646 feature David Fifield (Apr 05)
- Re: Use of ISO646 feature Daniel Miller (Apr 05)
- Re: Use of ISO646 feature David Fifield (Apr 05)
- Re: Use of ISO646 feature Daniel Miller (Apr 06)
- Re: Use of ISO646 feature Daniel Miller (Apr 05)