diff options
author | U-CERVELO\ttsou | 2009-09-11 15:35:28 -0400 |
---|---|---|
committer | ttsou | 2009-09-16 17:08:52 -0400 |
commit | c6f6e69024bd21e99f5f8673dce2399c4bfd8bb8 (patch) | |
tree | f0ee69939640fa9cf1fb4462b8d7187077278ba7 /usrp/host/lib | |
parent | 433432fed1e79ca93763eec2d9186744e08d5ad1 (diff) | |
download | gnuradio-c6f6e69024bd21e99f5f8673dce2399c4bfd8bb8.tar.gz gnuradio-c6f6e69024bd21e99f5f8673dce2399c4bfd8bb8.tar.bz2 gnuradio-c6f6e69024bd21e99f5f8673dce2399c4bfd8bb8.zip |
changes to build on windows / cygwin
Diffstat (limited to 'usrp/host/lib')
-rw-r--r-- | usrp/host/lib/Makefile.am | 5 | ||||
-rw-r--r-- | usrp/host/lib/fusb.cc | 6 | ||||
-rw-r--r-- | usrp/host/lib/fusb.h | 2 | ||||
-rw-r--r-- | usrp/host/lib/fusb_sysconfig_win32.cc | 2 | ||||
-rw-r--r-- | usrp/host/lib/fusb_win32.cc | 6 | ||||
-rw-r--r-- | usrp/host/lib/usrp_basic_common.cc | 6 | ||||
-rw-r--r-- | usrp/host/lib/usrp_basic_libusb.cc | 6 |
7 files changed, 18 insertions, 15 deletions
diff --git a/usrp/host/lib/Makefile.am b/usrp/host/lib/Makefile.am index 4dd47595e..7c5dc25a5 100644 --- a/usrp/host/lib/Makefile.am +++ b/usrp/host/lib/Makefile.am @@ -74,7 +74,10 @@ darwin_CODE = \ win32_CODE = \ fusb_win32.cc \ - fusb_sysconfig_win32.cc + fusb_sysconfig_win32.cc \ + usrp_prims_libusb.cc \ + usrp_basic_libusb.cc + linux_CODE = \ fusb_linux.cc \ diff --git a/usrp/host/lib/fusb.cc b/usrp/host/lib/fusb.cc index ce4bb7aa9..0bd9ded59 100644 --- a/usrp/host/lib/fusb.cc +++ b/usrp/host/lib/fusb.cc @@ -20,9 +20,9 @@ * Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +//#ifdef HAVE_CONFIG_H +//#include "config.h" +//#endif #include <fusb.h> diff --git a/usrp/host/lib/fusb.h b/usrp/host/lib/fusb.h index 00bdffcc0..341e570a4 100644 --- a/usrp/host/lib/fusb.h +++ b/usrp/host/lib/fusb.h @@ -65,7 +65,7 @@ public: int block_size = 0, int nblocks = 0) = 0; // ACCESSORS - libusb_device_handle *get_libusb_device_handle () const { return d_udh; } + libusb_device_handle *get_usb_dev_handle () const { return d_udh; } }; diff --git a/usrp/host/lib/fusb_sysconfig_win32.cc b/usrp/host/lib/fusb_sysconfig_win32.cc index 16eaaa645..a0d140543 100644 --- a/usrp/host/lib/fusb_sysconfig_win32.cc +++ b/usrp/host/lib/fusb_sysconfig_win32.cc @@ -27,7 +27,7 @@ static const int MAX_BLOCK_SIZE = 64 * 1024; // Windows kernel hard limit static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB fusb_devhandle * -fusb_sysconfig::make_devhandle (usb_dev_handle *udh) +fusb_sysconfig::make_devhandle (usb_dev_handle *udh, libusb_context *ctx) { return new fusb_devhandle_win32 (udh); } diff --git a/usrp/host/lib/fusb_win32.cc b/usrp/host/lib/fusb_win32.cc index 8900576d9..7b11bb919 100644 --- a/usrp/host/lib/fusb_win32.cc +++ b/usrp/host/lib/fusb_win32.cc @@ -20,9 +20,9 @@ * Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +//#ifdef HAVE_CONFIG_H +//#include "config.h" +//#endif #include <fusb_win32.h> #include <usb.h> diff --git a/usrp/host/lib/usrp_basic_common.cc b/usrp/host/lib/usrp_basic_common.cc index 79e5b07ec..ad1eca56d 100644 --- a/usrp/host/lib/usrp_basic_common.cc +++ b/usrp/host/lib/usrp_basic_common.cc @@ -20,9 +20,9 @@ * Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +//#ifdef HAVE_CONFIG_H +//#include "config.h" +//#endif #include "usrp/usrp_basic.h" #include "usrp/usrp_prims.h" diff --git a/usrp/host/lib/usrp_basic_libusb.cc b/usrp/host/lib/usrp_basic_libusb.cc index c788cc054..c4842cac9 100644 --- a/usrp/host/lib/usrp_basic_libusb.cc +++ b/usrp/host/lib/usrp_basic_libusb.cc @@ -20,9 +20,9 @@ * Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +//#ifdef HAVE_CONFIG_H +//#include "config.h" +//#endif #include <usrp/usrp_basic.h> #include "usrp/usrp_prims.h" |