diff options
author | Moritz Fischer <moritz@ettus.com> | 2013-12-09 09:18:05 +0100 |
---|---|---|
committer | Moritz Fischer <moritz@ettus.com> | 2013-12-12 21:11:44 +0100 |
commit | d97ef4caa3a064d9641465fd42dff19476ad2621 (patch) | |
tree | f58501700789feed71f6e28bae4218befcb9d827 /host | |
parent | 7788c69225f68f67b95a5f778c7b45adf9cc046f (diff) | |
download | uhd-d97ef4caa3a064d9641465fd42dff19476ad2621.tar.gz uhd-d97ef4caa3a064d9641465fd42dff19476ad2621.tar.bz2 uhd-d97ef4caa3a064d9641465fd42dff19476ad2621.zip |
msg_task: Fixed build on Ubuntu 10.04 LTS.
* Includes for 'uint32_t/uint8_t' were missing. Compilers that
care don't like if we just use uint32_t like this.
* For portability boost::uint32_t and boost::uint8_t should
preferrably be used.
Signed-off-by: Moritz Fischer <moritz@ettus.com>
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/utils/msg_task.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/include/uhd/utils/msg_task.hpp b/host/include/uhd/utils/msg_task.hpp index ebb29af08..40ee65cb1 100644 --- a/host/include/uhd/utils/msg_task.hpp +++ b/host/include/uhd/utils/msg_task.hpp @@ -24,14 +24,15 @@ #include <boost/function.hpp> #include <boost/utility.hpp> #include <boost/optional/optional.hpp> +#include <boost/cstdint.hpp> #include <vector> namespace uhd{ class UHD_API msg_task : boost::noncopyable{ public: typedef boost::shared_ptr<msg_task> sptr; - typedef std::vector<uint8_t> msg_payload_t; - typedef std::pair<uint32_t, msg_payload_t > msg_type_t; + typedef std::vector<boost::uint8_t> msg_payload_t; + typedef std::pair<boost::uint32_t, msg_payload_t > msg_type_t; typedef boost::function<boost::optional<msg_type_t>(void)> task_fcn_type; /* @@ -41,9 +42,9 @@ namespace uhd{ */ virtual msg_payload_t get_msg_from_dump_queue(boost::uint32_t sid) = 0; - inline static std::vector<uint8_t> buff_to_vector(uint8_t* p, size_t n) { + inline static std::vector<boost::uint8_t> buff_to_vector(boost::uint8_t* p, size_t n) { if(p and n > 0){ - std::vector<uint8_t> v(n); + std::vector<boost::uint8_t> v(n); memcpy(&v.front(), p, n); return v; } |