diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2014-11-16 18:20:51 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2014-11-16 18:20:51 +0200 |
commit | b77da5c3a3342bbb9ddb2bfe75ea8633016ac2da (patch) | |
tree | 51dae1deffb6f77b87c6fb2ff989b8d1de2c8c19 | |
parent | bcfd774b9d980de45afa643f1c734f799770a870 (diff) | |
download | ffts-b77da5c3a3342bbb9ddb2bfe75ea8633016ac2da.zip ffts-b77da5c3a3342bbb9ddb2bfe75ea8633016ac2da.tar.gz |
Follow the "one definition rule"
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/ffts.c | 1 | ||||
-rw-r--r-- | src/ffts_internal.h | 10 |
3 files changed, 10 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4adbb64..05b7d2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,9 +60,14 @@ if(CMAKE_COMPILER_IS_GNUCC) endif(HAVE_LIBM) endif(CMAKE_COMPILER_IS_GNUCC) +include_directories(include) include_directories(src) include_directories(${CMAKE_CURRENT_BINARY_DIR}) +set(FFTS_HEADERS + include/ffts.h +) + set(FFTS_SOURCES src/ffts_attributes.h src/ffts.c @@ -168,6 +173,7 @@ else() endif() add_library(ffts_static + ${FFTS_HEADERS} ${FFTS_SOURCES} ) @@ -31,6 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "ffts.h" #include "ffts_internal.h" #include "macros.h" #include "patterns.h" diff --git a/src/ffts_internal.h b/src/ffts_internal.h index a8e27b8..68a08db 100644 --- a/src/ffts_internal.h +++ b/src/ffts_internal.h @@ -31,8 +31,8 @@ */ -#ifndef __CP_SSE_H__ -#define __CP_SSE_H__ +#ifndef FFTS_INTERNAL_H +#define FFTS_INTERNAL_H //#include "config.h" //#include "codegen.h" @@ -231,8 +231,4 @@ static FFTS_ALWAYS_INLINE float W_im(float N, float k) return sin(-2.0 * M_PI * k / N); } -void ffts_free(ffts_plan_t *); -void ffts_execute(ffts_plan_t *, const void *, void *); -ffts_plan_t *ffts_init_1d(size_t N, int sign); - -#endif +#endif /* FFTS_INTERNAL_H */ |