Skip to content
Browse files

Fixed CPP options so that Apple blocks are ignored ins stdlib.h

  • Loading branch information...
1 parent c25d035 commit de11f1f9d3f89be5668ec17b22b3cf75f8a1beb0 @axman6 committed Dec 18, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 OpenCL.cabal
View
10 OpenCL.cabal
@@ -1,5 +1,5 @@
Name: OpenCL
-Version: 1.0.2.4
+Version: 1.0.2.5
License: BSD3
License-File: LICENSE
Author: Luis Cabellos
@@ -46,10 +46,14 @@ Library
Other-Modules:
System.GPU.OpenCL.Types
+
+ if os(darwin)
+ cpp-options: "-U__BLOCKS__"
+
if os(windows)
- cpp-options: "-DCALLCONV=stdcall"
+ cpp-options: "-DCALLCONV=stdcall"
else
- cpp-options: "-DCALLCONV=ccall"
+ cpp-options: "-DCALLCONV=ccall"
cpp-options: -Iinclude

0 comments on commit de11f1f

Please sign in to comment.
Something went wrong with that request. Please try again.