From 49f3e782553e4cc1c672d16010b0b3bdb14b784a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 3 Apr 2007 09:17:50 +0000 Subject: [PATCH] Keep the typedefs ALLOCATION_FUNCTION and DEALLOCATION_FUNCTION with the "C" function call convention. --- CGALimageIO/src/CGALimageIO/imageio/ImageIO.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CGALimageIO/src/CGALimageIO/imageio/ImageIO.h b/CGALimageIO/src/CGALimageIO/imageio/ImageIO.h index 03e440cf02e..02e67784b7d 100644 --- a/CGALimageIO/src/CGALimageIO/imageio/ImageIO.h +++ b/CGALimageIO/src/CGALimageIO/imageio/ImageIO.h @@ -441,13 +441,13 @@ void removeSupportedFileFormat(); @param fileName image file name */ PTRIMAGE_FORMAT imageType(const char *fileName); - +extern "C" { /** function prototype to allocate memory */ typedef void *(*ALLOCATION_FUNCTION)(size_t); /** function prototype to free memory */ typedef void (*DEALLOCATION_FUNCTION)(void *); - +} /** set allocation and deallocation routines @param alloc new allocation routine