Skip to content

Commit

Permalink
Fix building with latest libnx commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterCore committed Nov 26, 2023
1 parent e2c0cbc commit 8c4e432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/core/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ enum usb_supported_speed {
};

/// Imported from libusb, with some adjustments.
struct PACKED usb_bos_descriptor {
struct NX_PACKED usb_bos_descriptor {
u8 bLength;
u8 bDescriptorType; ///< Must match USB_DT_BOS.
u16 wTotalLength; ///< Length of this descriptor and all of its sub descriptors.
Expand All @@ -170,7 +170,7 @@ struct PACKED usb_bos_descriptor {
NXDT_ASSERT(struct usb_bos_descriptor, 0x5);

/// Imported from libusb, with some adjustments.
struct PACKED usb_2_0_extension_descriptor {
struct NX_PACKED usb_2_0_extension_descriptor {
u8 bLength;
u8 bDescriptorType; ///< Must match USB_DT_DEVICE_CAPABILITY.
u8 bDevCapabilityType; ///< Must match USB_BT_USB_2_0_EXTENSION.
Expand All @@ -180,7 +180,7 @@ struct PACKED usb_2_0_extension_descriptor {
NXDT_ASSERT(struct usb_2_0_extension_descriptor, 0x7);

/// Imported from libusb, with some adjustments.
struct PACKED usb_ss_usb_device_capability_descriptor {
struct NX_PACKED usb_ss_usb_device_capability_descriptor {
u8 bLength;
u8 bDescriptorType; ///< Must match USB_DT_DEVICE_CAPABILITY.
u8 bDevCapabilityType; ///< Must match USB_BT_SS_USB_DEVICE_CAPABILITY.
Expand Down
2 changes: 1 addition & 1 deletion source/exception_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace nxdt::utils {
}
#endif /* LOG_LEVEL < LOG_LEVEL_NONE */

static void NORETURN AbortProgramExecution(std::string str)
static void NX_NORETURN AbortProgramExecution(std::string str)
{
if (g_borealisInitialized)
{
Expand Down

0 comments on commit 8c4e432

Please sign in to comment.