build: fix broken ftd2xx bus blaster
[fw/openocd] / src / jtag / drivers / ftd2xx_common.h
index 46bdfa262c0ce5b6133069cc745683452ca675b3..8622f2410173b7da370d2f4b2e8bade02a6d1755 100644 (file)
 #ifndef _FTD2XX_COMMON_H
 #define _FTD2XX_COMMON_H
 
-#if BUILD_FT2232_FTD2XX == 1
+#if ((BUILD_FT2232_FTD2XX == 1) || (BUILD_PRESTO_FTD2XX == 1) || (BUILD_USB_BLASTER_FTD2XX == 1))
 #include <ftd2xx.h>
 
 static const char *ftd2xx_status_string(FT_STATUS status)
 {
-       switch (status)
-       {
+       switch (status) {
                case FT_OK:                                                     return "OK";
                case FT_INVALID_HANDLE:                         return "invalid handle";
                case FT_DEVICE_NOT_FOUND:                       return "device not found";