Added an extra level of indirection to let the compiler properly expand the macro.

See: http://gcc.gnu.org/onlinedocs/cpp/Stringification.html
This commit is contained in:
henri 2012-09-03 13:39:43 +00:00
parent 832f815d33
commit db4b8dc603

3
nmap.h
View file

@ -256,7 +256,8 @@ void *realloc();
#define MAX_TIMEOUTS MAX_SOCKETS /* How many timed out connection attempts
in a row before we decide the host is
dead? */
#define STR(X) #X
#define _STR(X) #X
#define STR(X) _STR(X)
#define DEFAULT_TCP_PROBE_PORT 80 /* The ports TCP ping probes go to if
unspecified by user -- uber hackers
change this to 113 */