diff --git a/src/include/gdb_if.h b/src/include/gdb_if.h index 29303c6b7b3..332683c212b 100644 --- a/src/include/gdb_if.h +++ b/src/include/gdb_if.h @@ -21,7 +21,7 @@ #ifndef INCLUDE_GDB_IF_H #define INCLUDE_GDB_IF_H -#if PC_HOSTED == 0 +#if PC_HOSTED == 0 && !defined(NO_LIBOPENCM3) #include void gdb_usb_out_cb(usbd_device *dev, uint8_t ep); #endif