diff options
author | Josh Blum | 2011-01-22 22:47:08 -0800 |
---|---|---|
committer | Josh Blum | 2011-01-22 22:47:08 -0800 |
commit | d65ae4249bf709d0e4062ef2825bef28ff77492a (patch) | |
tree | 7ae3e0c3edeb2bb9d84cb4a9ab4042fb908d17f5 /gnuradio-core/src/lib/general | |
parent | 05cc02cec03507c47846a668c92e6dcc4ba2e71e (diff) | |
download | gnuradio-d65ae4249bf709d0e4062ef2825bef28ff77492a.tar.gz gnuradio-d65ae4249bf709d0e4062ef2825bef28ff77492a.tar.bz2 gnuradio-d65ae4249bf709d0e4062ef2825bef28ff77492a.zip |
created gr_sys_paths.h to house functions for getting system paths
gr_sys_paths.h has gr_tmp_path() and gr_appdata_path()
this replaces gr_tmp_path.h
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gri_fft.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gnuradio-core/src/lib/general/gri_fft.cc b/gnuradio-core/src/lib/general/gri_fft.cc index 37be06f09..f20b15ca0 100644 --- a/gnuradio-core/src/lib/general/gri_fft.cc +++ b/gnuradio-core/src/lib/general/gri_fft.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2003,2008 Free Software Foundation, Inc. + * Copyright 2003,2008,2011 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -21,6 +21,7 @@ */ #include <gri_fft.h> +#include <gr_sys_paths.h> #include <fftw3.h> #include <gr_complex.h> #include <stdlib.h> @@ -33,14 +34,6 @@ #include <boost/filesystem/path.hpp> namespace fs = boost::filesystem; -static std::string get_home_dir(void){ - #if defined(BOOST_WINDOWS) - return getenv ("APPDATA"); - #else - return getenv ("HOME"); - #endif -} - boost::mutex & gri_fft_planner::mutex() { @@ -53,7 +46,7 @@ static const char * wisdom_filename () { static fs::path path; - path = fs::path(get_home_dir()) / ".gr_fftw_wisdom"; + path = fs::path(gr_appdata_path()) / ".gr_fftw_wisdom"; return path.string().c_str(); } |