summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-utils/python/modtool/templates.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py
index 740ba5dabd..f970ce0ae2 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -251,7 +251,9 @@ ${str_to_fancyc_comment($license)}
\#define INCLUDED_${modname.upper()}_${blockname.upper()}_H
\#include <${modname}/api.h>
+#if $blocktype != 'noblock'
\#include <gnuradio/${grblocktype}.h>
+#end if
namespace gr {
namespace ${modname} {