Nmap Development mailing list archives

uint8_t on MingW


From: Gisle Vanem <gvanem () broadpark no>
Date: Wed, 15 Dec 2010 17:07:01 +0100

The recent MingW already have 'uint8_t' et. al defined in it's <stdint.h>
file. So they should not be in nbase_winconfig.h. An easy patch:

--- SVN-Latest/nbase/nbase_winconfig.h Sat Nov 20 16:55:47 2010
+++ ./nbase/nbase_winconfig.h Sat Dec 04 15:25:01 2010
@@ -132,6 +132,7 @@
#define HAVE_VASPRINTF 1
#define HAVE_VSNPRINTF 1

+#ifndef __MINGW32__
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
@@ -140,6 +141,7 @@
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef signed __int64 int64_t;
+#endif

#define HAVE_IPV6 1
#define HAVE_AF_INET6 1
@@ -164,5 +166,7 @@
#define HAVE_OPENSSL 1
/* Apparently __func__ isn't yet supported */
#define __func__ __FUNCTION__
+
+#undef interface

#endif /* NBASE_WINCONFIG_H */

-----------------

Besides, I've undef'ed 'interface' since it's defined to something else in
a MingW/Win32 SDK header.

--gv
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: