diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-01-20 12:50:09 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:43 +0100 |
commit | 4a56d62ddc2a710b3dfecfdfa134755fd3d6c521 (patch) | |
tree | 044990eae2a389bbf6ed2ddc3d8016fe499d121f /libcrystfel/src/reax.h | |
parent | 2bf4d1938789dd580ad266bd6dbce63f45991580 (diff) |
Don't compile or use ReAx if FFTW is not available
Diffstat (limited to 'libcrystfel/src/reax.h')
-rw-r--r-- | libcrystfel/src/reax.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/libcrystfel/src/reax.h b/libcrystfel/src/reax.h index 543cd0d5..60decac9 100644 --- a/libcrystfel/src/reax.h +++ b/libcrystfel/src/reax.h @@ -19,9 +19,28 @@ #include "cell.h" +#ifdef HAVE_FFTW + extern IndexingPrivate *reax_prepare(void); extern void reax_cleanup(IndexingPrivate *pp); - extern void reax_index(IndexingPrivate *p, struct image *image, UnitCell *cell); +#else /* HAVE_FFTW */ + +static IndexingPrivate *reax_prepare() +{ + return NULL; +} + +static void reax_cleanup(IndexingPrivate *pp) +{ +} + +static void reax_index(IndexingPrivate *p, struct image *image, UnitCell *cell) +{ +} + + +#endif /* HAVE_FFTW */ + #endif /* REAX_H */ |