From e4fe7f0c8f74f4e6a3d1c88192102db70073d532 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Wed, 15 Jun 2011 21:55:48 +0000 Subject: [PATCH] - add some symbols required by MSVC for device plugins --- bochs/cpu/apic.cc | 2 +- bochs/cpu/apic.h | 2 +- bochs/osdep.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bochs/cpu/apic.cc b/bochs/cpu/apic.cc index d8efe9c2c..d8f4763e0 100644 --- a/bochs/cpu/apic.cc +++ b/bochs/cpu/apic.cc @@ -151,7 +151,7 @@ static void apic_bus_broadcast_eoi(Bit8u vector) #endif // available even if APIC is not compiled in -void apic_bus_deliver_smi(void) +BOCHSAPI_MSVCONLY void apic_bus_deliver_smi(void) { BX_CPU(0)->deliver_SMI(); } diff --git a/bochs/cpu/apic.h b/bochs/cpu/apic.h index 7a95b5527..7fd3cd2fd 100644 --- a/bochs/cpu/apic.h +++ b/bochs/cpu/apic.h @@ -161,7 +161,7 @@ public: }; int apic_bus_deliver_lowest_priority(Bit8u vector, apic_dest_t dest, bx_bool trig_mode, bx_bool broadcast); -int apic_bus_deliver_interrupt(Bit8u vector, apic_dest_t dest, Bit8u delivery_mode, bx_bool logical_dest, bx_bool level, bx_bool trig_mode); +BOCHSAPI_MSVCONLY int apic_bus_deliver_interrupt(Bit8u vector, apic_dest_t dest, Bit8u delivery_mode, bx_bool logical_dest, bx_bool level, bx_bool trig_mode); int apic_bus_broadcast_interrupt(Bit8u vector, Bit8u delivery_mode, bx_bool trig_mode, int exclude_cpu); #endif // if BX_SUPPORT_APIC diff --git a/bochs/osdep.h b/bochs/osdep.h index babc8423d..2aed7d2af 100644 --- a/bochs/osdep.h +++ b/bochs/osdep.h @@ -194,7 +194,7 @@ typedef int socklen_t; #if !BX_HAVE_MKSTEMP #define mkstemp bx_mkstemp - extern int bx_mkstemp(char *tpl); + BOCHSAPI_MSVCONLY extern int bx_mkstemp(char *tpl); #endif //////////////////////////////////////////////////////////////////////