From 297f2e3dd4534075553bbd3dc77edeb607514a48 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Fri, 15 Apr 2011 14:13:24 +0000 Subject: [PATCH] [USBEHCI_NEW] - Build fix #1 for mingw - Define cxa_pure_virtual which is required that gcc is aware that it should really use the libc++ instead of falling back to libc svn path=/branches/usb-bringup/; revision=51348 --- drivers/usb/usbehci_new/CMakeLists.txt | 1 + drivers/usb/usbehci_new/purecall.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 drivers/usb/usbehci_new/purecall.cpp diff --git a/drivers/usb/usbehci_new/CMakeLists.txt b/drivers/usb/usbehci_new/CMakeLists.txt index 97fec2a81c7..a167e30d95f 100644 --- a/drivers/usb/usbehci_new/CMakeLists.txt +++ b/drivers/usb/usbehci_new/CMakeLists.txt @@ -9,6 +9,7 @@ add_library(usbehci SHARED hcd_controller.cpp hardware.cpp misc.cpp + purecall.cpp usbehci.rc) target_link_libraries(usbehci diff --git a/drivers/usb/usbehci_new/purecall.cpp b/drivers/usb/usbehci_new/purecall.cpp new file mode 100644 index 00000000000..c168b79e10e --- /dev/null +++ b/drivers/usb/usbehci_new/purecall.cpp @@ -0,0 +1,24 @@ +/* + * PROJECT: ReactOS Universal Serial Bus Bulk Enhanced Host Controller Interface + * LICENSE: GPL - See COPYING in the top level directory + * FILE: drivers/usb/usbehci_new/purecall.cpp + * PURPOSE: USB EHCI device driver. + * PROGRAMMERS: + * Michael Martin (michael.martin@reactos.org) + * Johannes Anderwald (johannes.anderwald@reactos.org) + */ + +#include "usbehci.h" + + +extern "C" { + void + __cxa_pure_virtual() + { + // put error handling here + + DbgBreakPoint(); + + } +} +