]> mj.ucw.cz Git - pciutils.git/commitdiff
<stdint.h> for Solaris.
authorMartin Mares <mj@ucw.cz>
Tue, 6 Feb 2007 11:55:17 +0000 (12:55 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 6 Feb 2007 11:55:17 +0000 (12:55 +0100)
ChangeLog
lib/configure
lib/types.h

index 3d536baeecd59c220379df92fe5f403b0072abdf..3e673bb0ba60cf3ac321e98eb2cb34fcf40b072b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-06  Martin Mares  <mj@ucw.cz>
+
+       * lib/types.h, lib/configure: Solaris should use <stdint.h> to get precise
+       integer types.
+
 2007-02-04  Martin Mares  <mj@ucw.cz>
 
        * lspci.c: alloca() needs <alloca.h>.
index 57c550961882d7a76e060c0ce5b63715d123ff30..77393a56195724422b56139d90d273a4ad3c7b95 100755 (executable)
@@ -67,6 +67,7 @@ case $sys in
                                                exit 1
                                                ;;
                esac
+               echo >>$c '#define PCI_HAVE_STDINT_H'
                ;;
        freebsd)
                echo_n " fbsd-device"
index 4808f564554088c2bbe0eb10d74179d344b702e2..5191d151cd13bcdfb05e5da59d14cc04f3e5923c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     The PCI Library -- Types and Format Strings
  *
- *     Copyright (c) 1997--2005 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2007 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 typedef unsigned __int8 u8;
 typedef unsigned __int16 u16;
 typedef unsigned __int32 u32;
+#elif defined(PCI_HAVE_STDINT_H)
+#include <stdint.h>
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
 #else
 typedef u_int8_t u8;
 typedef u_int16_t u16;