ExternalFunctionCallback.st
changeset 25087 6be980cf75e3
parent 24756 fca38270ff24
--- a/ExternalFunctionCallback.st	Sun Dec 08 21:03:52 2019 +0100
+++ b/ExternalFunctionCallback.st	Sun Dec 08 22:03:13 2019 +0100
@@ -36,7 +36,11 @@
 # endif
 
 #ifdef HAVE_FFI
-# include <ffi.h>
+# ifdef __osx__
+#  include <ffi/ffi.h>
+# else
+#  include <ffi.h>
+# endif
 # define MAX_ARGS    128
 
 # ifdef USE_STANDARD_FFI
@@ -407,7 +411,7 @@
 
 callbackFor:aBlock returnType:returnType argumentTypes:argumentTypes
     "generate a callback for the ErrorCallbackProc signature:
-        ErrorCallbackProc(HWND hWnd, int nErrID, LPTSTR lpErrorText)
+	ErrorCallbackProc(HWND hWnd, int nErrID, LPTSTR lpErrorText)
      which, can be given to an external API call and which invokes the
      three arg block when clled.
      Do not forget to eventually release the callback to avoid a memory leak."
@@ -1007,4 +1011,3 @@
 version_CVS
     ^ '$Header$'
 ! !
-