Modify all block factories to use gnuradio::get_initial_sptr.
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_fft_vfc.cc
index 5babcb1e4c15315269ab122b29670e22abecb05c..608161efedf120a51869bb67fac58eaeb84b7e3c 100644 (file)
@@ -1,12 +1,12 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004,2010 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
@@ -29,6 +29,8 @@
 #include <gri_fft.h>
 #include <math.h>
 #include <stdexcept>
+#include <string.h>
+#include <cstdio>
 
 
 // FIXME after this is working, change to use native real to complex fft.
@@ -40,7 +42,7 @@
 gr_fft_vfc_sptr
 gr_make_fft_vfc (int fft_size, bool forward, const std::vector<float> window)
 {
-  return gr_fft_vfc_sptr (new gr_fft_vfc (fft_size, forward, window));
+  return gnuradio::get_initial_sptr(new gr_fft_vfc (fft_size, forward, window));
 }
 
 gr_fft_vfc::gr_fft_vfc (int fft_size, bool forward, const std::vector<float> window)