mirror of https://github.com/CGAL/cgal
Keep the typedefs ALLOCATION_FUNCTION and DEALLOCATION_FUNCTION with the "C"
function call convention.
This commit is contained in:
parent
c05e820f4d
commit
49f3e78255
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue