diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2015-08-06 15:16:54 -0500 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2015-08-06 15:16:54 -0500 |
commit | f4e7debd1fea196e37f921bf1b3025fcfc6816b5 (patch) | |
tree | 7e556539e15a710f3c8da0464b9adda7ee6aad1b /host/lib/transport | |
parent | 30f87afcba71a07fbd28d51318e791448c28314e (diff) | |
download | uhd-f4e7debd1fea196e37f921bf1b3025fcfc6816b5.tar.gz uhd-f4e7debd1fea196e37f921bf1b3025fcfc6816b5.tar.bz2 uhd-f4e7debd1fea196e37f921bf1b3025fcfc6816b5.zip |
libusb: Fixed Windows build issue
- Introduced in b08352f267730ea417ec345cd90833a6746a1114. ERROR is a
macro included through some windows specific header. Replaced with
STATUS_ERROR.
Diffstat (limited to 'host/lib/transport')
-rw-r--r-- | host/lib/transport/libusb1_zero_copy.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp index fe0eb9bfd..7b191edaf 100644 --- a/host/lib/transport/libusb1_zero_copy.cpp +++ b/host/lib/transport/libusb1_zero_copy.cpp @@ -222,7 +222,7 @@ public: _frame_size(frame_size), _buffer_pool(buffer_pool::make(_num_frames, _frame_size)), _enqueued(_num_frames), _released(_num_frames), - _status(RUNNING) + _status(STATUS_RUNNING) { const bool is_recv = (endpoint & 0x80) != 0; const std::string name = str(boost::format("%s%d") % ((is_recv)? "rx" : "tx") % int(endpoint & 0x7f)); @@ -308,7 +308,7 @@ public: { typename buffer_type::sptr buff; - if (_status == ERROR) + if (_status == STATUS_ERROR) return buff; // Serialize access to buffers @@ -349,7 +349,7 @@ private: //! why 2 queues? there is room in the future to have > N buffers but only N in flight boost::circular_buffer<libusb_zero_copy_mb *> _enqueued, _released; - enum {RUNNING,ERROR} _status; + enum {STATUS_RUNNING, STATUS_ERROR} _status; void enqueue_buffer(libusb_zero_copy_mb *mb) { @@ -361,7 +361,7 @@ private: void submit_what_we_can(void) { - if (_status == ERROR) + if (_status == STATUS_ERROR) return; while (not _released.empty() and not _enqueued.full()) { @@ -372,7 +372,7 @@ private: } catch (uhd::runtime_error& e) { - _status = ERROR; + _status = STATUS_ERROR; throw e; } } |