~peter-pearse/ubuntu/natty/pciutils/prop001

« back to all changes in this revision

Viewing changes to lib/types.h

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2008-04-29 16:23:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080429162338-v20040rx66khbl7v
Tags: 1:3.0.0-3
libpci-dev conflicts with pciutils-dev. Closes: #478290

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      The PCI Library -- Types and Format Strings
3
3
 *
4
 
 *      Copyright (c) 1997--2005 Martin Mares <mj@ucw.cz>
 
4
 *      Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
5
5
 *
6
6
 *      Can be freely distributed and used under the terms of the GNU GPL.
7
7
 */
11
11
#ifndef PCI_HAVE_Uxx_TYPES
12
12
 
13
13
#ifdef PCI_OS_WINDOWS
14
 
typedef unsigned __int8 u8;
15
 
typedef unsigned __int16 u16;
16
 
typedef unsigned __int32 u32;
 
14
#include <windef.h>
 
15
typedef BYTE u8;
 
16
typedef WORD u16;
 
17
typedef DWORD u32;
 
18
#elif defined(PCI_HAVE_STDINT_H) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
 
19
#include <stdint.h>
 
20
typedef uint8_t u8;
 
21
typedef uint16_t u16;
 
22
typedef uint32_t u32;
17
23
#else
18
24
typedef u_int8_t u8;
19
25
typedef u_int16_t u16;
51
57
#else
52
58
#define PCIIRQ_FMT "%d"
53
59
#endif
 
60
 
 
61
#ifdef __GNUC__
 
62
#define PCI_PRINTF(x,y) __attribute__((format(printf, x, y)))
 
63
#else
 
64
#define PCI_PRINTF(x,y)
 
65
#endif