]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/i386-io-djgpp.h
MacOS: An attempt to appease compiler picky about attribute placement
[pciutils.git] / lib / i386-io-djgpp.h
index 41885dbfaccf5aa793b3b60cd10069d0fa3caa26..1afb00e4a562c94face80fb93abb801427ed630e 100644 (file)
@@ -3,18 +3,14 @@
  *
  *     Copyright (c) 2010, 2017 Rudolf Marek <r.marek@assembler.cz>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include <pc.h>
 #include <dos.h>
-#define outb(x,y) outportb(y, x)
-#define outw(x,y) outportw(y, x)
-#define outl(x,y) outportl(y, x)
 
-#define inb  inportb
-#define inw  inportw
-#define inl  inportl
+#include "i386-io-access.h"
 
 static int irq_enabled;
 
@@ -24,10 +20,9 @@ intel_setup_io(struct pci_access *a UNUSED)
   return 1;
 }
 
-static inline int
+static inline void
 intel_cleanup_io(struct pci_access *a UNUSED)
 {
-  return 1;
 }
 
 static inline void intel_io_lock(void)