Keep the typedefs ALLOCATION_FUNCTION and DEALLOCATION_FUNCTION with the "C"

function call convention.
This commit is contained in:
Laurent Rineau 2007-04-03 09:17:50 +00:00
parent c05e820f4d
commit 49f3e78255
1 changed files with 2 additions and 2 deletions

View File

@ -441,13 +441,13 @@ void removeSupportedFileFormat();
@param fileName image file name */ @param fileName image file name */
PTRIMAGE_FORMAT imageType(const char *fileName); PTRIMAGE_FORMAT imageType(const char *fileName);
extern "C" {
/** function prototype to allocate memory */ /** function prototype to allocate memory */
typedef void *(*ALLOCATION_FUNCTION)(size_t); typedef void *(*ALLOCATION_FUNCTION)(size_t);
/** function prototype to free memory */ /** function prototype to free memory */
typedef void (*DEALLOCATION_FUNCTION)(void *); typedef void (*DEALLOCATION_FUNCTION)(void *);
}
/** set allocation and deallocation routines /** set allocation and deallocation routines
@param alloc new allocation routine @param alloc new allocation routine