]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix error, pick up stuff from libpcap bittypes.h.
authorGuy Harris <[email protected]>
Sun, 4 Apr 2010 20:49:03 +0000 (13:49 -0700)
committerGuy Harris <[email protected]>
Sun, 4 Apr 2010 20:49:03 +0000 (13:49 -0700)
Win32/Include/bittypes.h

index 528e6c99bd3c6762a21704647ca0d3e2b53258f0..95aa9faa6bfdbf6e6d86600305f2b1669a206aec 100644 (file)
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+#ifndef _BITTYPES_H
+#define _BITTYPES_H
+
 #ifndef HAVE_U_INT8_T
 typedef unsigned char u_int8_t;
+typedef signed char int8_t;
 #endif /* HAVE_U_INT8_T */
 
 #ifndef HAVE_U_INT16_T
 typedef unsigned short u_int16_t;
+typedef signed short int16_t;
 #endif /* HAVE_U_INT16_T */
 
 #ifndef HAVE_U_INT32_T
 typedef unsigned int u_int32_t;
+typedef signed int int32_t;
 #endif /* HAVE_U_INT32_T */
 
 #ifndef HAVE_U_INT64_T
 #ifdef _MSC_EXTENSIONS
 typedef unsigned _int64 u_int64_t;
+typedef _int64 int64_t;
 #else /* _MSC_EXTENSIONS */
 typedef unsigned long long u_int64_t;
-#else /* _MSC_EXTENSIONS */
+typedef long long int64_t;
+#endif /* _MSC_EXTENSIONS */
 #endif /* HAVE_U_INT64_T */
 
 #ifndef PRId64
@@ -77,3 +85,5 @@ typedef unsigned long long u_int64_t;
 #define PRIu64 "llu"
 #endif /* _MSC_EXTENSIONS */
 #endif /* PRIu64 */
+
+#endif /* _BITTYPES_H */