summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2014-11-16 18:20:51 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2014-11-16 18:20:51 +0200
commitb77da5c3a3342bbb9ddb2bfe75ea8633016ac2da (patch)
tree51dae1deffb6f77b87c6fb2ff989b8d1de2c8c19
parentbcfd774b9d980de45afa643f1c734f799770a870 (diff)
downloadffts-b77da5c3a3342bbb9ddb2bfe75ea8633016ac2da.zip
ffts-b77da5c3a3342bbb9ddb2bfe75ea8633016ac2da.tar.gz
Follow the "one definition rule"
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/ffts.c1
-rw-r--r--src/ffts_internal.h10
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}
)
diff --git a/src/ffts.c b/src/ffts.c
index 545138b..ee0102b 100644
--- a/src/ffts.c
+++ b/src/ffts.c
@@ -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 */
OpenPOWER on IntegriCloud