Paste: freeimage

Author: _hrrld
Mode: factor
Date: Wed, 12 Nov 2008 05:28:23
Plain Text |
! Copyright (C) 2008 _hrrld
! See http://factorcode.org/license.txt for BSD license.
!
USING: system combinators alien alien.syntax ;
IN: freeimage

<<
"freeimage" {
    { [ os winnt? ]  [ "freeimage.dll" ] }
    { [ os macosx? ] [ "" ] }
    { [ os unix? ]   [ "" ] }
} cond "cdecl" add-library
>>

LIBRARY: freeimage

FUNCTION: char* FreeImage_GetVersion ( ) ;

Annotation: sorted, stdcall + _name got it.

Author: _hrrld
Mode: factor
Date: Wed, 12 Nov 2008 05:56:37
Plain Text |
! Copyright (C) 2008 _hrrld
! See http://factorcode.org/license.txt for BSD license.
!
USING: system combinators alien alien.syntax ;
IN: freeimage

<<
"freeimage" {
    { [ os winnt? ]  [ "freeimage.dll" ] }
    { [ os macosx? ] [ "" ] }
    { [ os unix? ]   [ "" ] }
} cond "stdcall" add-library
>>

LIBRARY: freeimage

FUNCTION: char* _FreeImage_GetVersion ( ) ;

New Annotation

Summary:
Author:
Mode:
Body: