cufft 0.1.0.2 → 0.1.0.3
raw patch · 2 files changed
+22/−1 lines, 2 files
Files
- cbits/wrap.h +20/−0
- cufft.cabal +2/−1
+ cbits/wrap.h view
@@ -0,0 +1,20 @@+/*+ * Extra bits for CUFFT bindings+ */++#ifndef C_WRAP_H+#define C_WRAP_H++/*+ * We need to work around some shortcomings in the C parser of c2hs by disabling advanced attributes etc on Apple platforms.+ */+#ifdef __APPLE__+#define _ANSI_SOURCE+#define __AVAILABILITY__+#define __OSX_AVAILABLE_STARTING(_mac, _iphone)+#define __OSX_AVAILABLE_BUT_DEPRECATED(_macIntro, _macDep, _iphoneIntro, _iphoneDep)+#endif++#include <cufft.h>++#endif
cufft.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: cufft-version: 0.1.0.2+version: 0.1.0.3 synopsis: Haskell bindings for the CUFFT library description: The CUFFT library is part of the CUDA developer toolkit. .@@ -27,6 +27,7 @@ config.sub install-sh cufft.buildinfo.in+ cbits/wrap.h library exposed-modules: Foreign.CUDA.FFT