]> mj.ucw.cz Git - pciutils.git/blobdiff - pciutils.h
Fix to the previous patch.
[pciutils.git] / pciutils.h
index 0997df7628756846ea7563d2b9d20eeb3c4de20d..31a4ce1b2d25bdc445b9948d78c72293c78cc521 100644 (file)
@@ -1,7 +1,7 @@
 /*
- *     Linux PCI Utilities -- Declarations
+ *     The PCI Utilities -- Declarations
  *
- *     Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 #define PCIUTILS_VERSION PCILIB_VERSION
 
 #if !defined(__GNUC__)
-#define __attribute__(x)
+#define NONRET
 #define inline
+#else
+#define NONRET __attribute__((noreturn))
 #endif
 
-void __attribute__((noreturn)) die(char *msg, ...);
+void die(char *msg, ...) NONRET;
 void *xmalloc(unsigned int howmuch);
 int parse_generic_option(int i, struct pci_access *pacc, char *optarg);
 
@@ -33,13 +35,6 @@ int parse_generic_option(int i, struct pci_access *pacc, char *optarg);
 #define GENOPT_INTEL
 #define GENHELP_INTEL
 #endif
-#ifdef HAVE_PM_SYSCALLS
-#define GENOPT_SYSCALLS "S"
-#define GENHELP_SYSCALLS "-S\t\tUse direct hardware access via syscalls\n"
-#else
-#define GENOPT_SYSCALLS
-#define GENHELP_SYSCALLS
-#endif
 #ifdef HAVE_PM_DUMP
 #define GENOPT_DUMP "F:"
 #define GENHELP_DUMP "-F <file>\tRead configuration data from given file\n"
@@ -48,6 +43,6 @@ int parse_generic_option(int i, struct pci_access *pacc, char *optarg);
 #define GENHELP_DUMP
 #endif
 
-#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_SYSCALLS GENOPT_DUMP
-#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_SYSCALLS GENHELP_DUMP \
+#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_DUMP
+#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_DUMP \
        "-G\t\tEnable PCI access debugging\n"