Skip to content

Commit f1ce160

Browse files
committed
Build fix for El Capitan
Availability macros on OS X cause problems with c2hs, but it appears this has been fixed as of haskell/c2hs#85 and released as part of c2hs-0.19.1, so we don't need this block anymore.
1 parent df9afcd commit f1ce160

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cbits/stubs.h

-13
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@
1111
#define CUDARTAPI __stdcall
1212
#endif
1313

14-
// #define __cdecl
15-
16-
/*
17-
* We need to work around some shortcomings in the C parser of c2hs by disabling advanced attributes etc on Apple platforms.
18-
*/
19-
#ifdef __APPLE__
20-
#define _ANSI_SOURCE
21-
#define __AVAILABILITY__
22-
#define __OSX_AVAILABLE_STARTING(_mac, _iphone)
23-
#define __OSX_AVAILABLE_BUT_DEPRECATED(_macIntro, _macDep, _iphoneIntro, _iphoneDep)
24-
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(_osxIntro, _osxDep, _iosIntro, _iosDep, _msg)
25-
#endif
26-
2714
#include <cuda.h>
2815
#include <cuda_runtime_api.h>
2916

0 commit comments

Comments
 (0)