summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-24 23:10:37 -0800
committerJosh Blum <josh@joshknows.com>2011-02-24 23:10:37 -0800
commitaee2a4e52e7a2b9dcb60d1d34f59f7f8f80e7f86 (patch)
treec9aba7e471700fada427566ad5cf045e287b9b6e /host
parent587295186d8c905df897546058b743325fd871e6 (diff)
downloaduhd-aee2a4e52e7a2b9dcb60d1d34f59f7f8f80e7f86.tar.gz
uhd-aee2a4e52e7a2b9dcb60d1d34f59f7f8f80e7f86.tar.bz2
uhd-aee2a4e52e7a2b9dcb60d1d34f59f7f8f80e7f86.zip
usrp-e100: conditional code for when fpga downloader is externally included
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp_e100/fpga_downloader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e100/fpga_downloader.cpp b/host/lib/usrp/usrp_e100/fpga_downloader.cpp
index 95665da83..018a120d6 100644
--- a/host/lib/usrp/usrp_e100/fpga_downloader.cpp
+++ b/host/lib/usrp/usrp_e100/fpga_downloader.cpp
@@ -16,7 +16,15 @@
//
#include <uhd/config.hpp>
+#ifdef UHD_DLL_EXPORTS
#include <uhd/exception.hpp>
+#else //special case when this file is externally included
+#include <stdexcept>
+namespace uhd{
+ typedef std::runtime_error os_error;
+ typedef std::runtime_error io_error;
+}
+#endif
#include <iostream>
#include <sstream>