using std::tr1::shared_ptr;
#endif
+#ifdef HAS_LIBUSB
#include <libusb-1.0/libusb.h>
+#endif
using namespace SCSI2SD;
namespace
{
bool hasDFUdevice() {
+#ifdef HAS_LIBUSB
bool found = false;
libusb_device **list;
libusb_free_device_list(list, 1);
return found;
+#else
+ return false;
+#endif
}
std::string cmd = ss.str();
int result = system(cmd.c_str());
+#ifdef WIN32
+ if (result != 0)
+#else
if (WEXITSTATUS(result) != 0)
+#endif
{
wxMessageBox(
"Update failed",
public:
virtual bool OnInit()
{
+#ifdef HAS_LIBUSB
libusb_init(NULL);
+#endif
AppFrame* frame = new AppFrame();
frame->Show(true);
SetTopWindow(frame);