]> git.sur5r.net Git - openocd/blobdiff - src/helper/replacements.h
binarybuffer: Remove unnecessary cast and fix hidden "bug"
[openocd] / src / helper / replacements.h
index 0fe93b26d30dbf5e08d1ca83ea1d56a3ef30988d..565fe9dca83600bb68dc9489ace7b814a5d7eaf8 100644 (file)
@@ -279,4 +279,8 @@ typedef struct {
 
 #endif /* HAVE_ELF_H */
 
+#if defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME
+const char *libusb_error_name(int error_code);
+#endif /* defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME */
+
 #endif /* REPLACEMENTS_H */