From d64ca34f1b6f34e86adefc7f735b4eff8e6d4a35 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 1 Feb 2009 00:10:07 +0200 Subject: Use __cdecl also for function pointers in liblzma API when on Windows. --- src/liblzma/api/lzma/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liblzma/api/lzma/base.h') diff --git a/src/liblzma/api/lzma/base.h b/src/liblzma/api/lzma/base.h index 9fe3ca66..4944e690 100644 --- a/src/liblzma/api/lzma/base.h +++ b/src/liblzma/api/lzma/base.h @@ -376,7 +376,7 @@ typedef struct { * returned NULL if some function from liblzma * returns LZMA_MEM_ERROR. */ - void *(*alloc)(void *opaque, size_t nmemb, size_t size); + void *(LZMA_API_CALL *alloc)(void *opaque, size_t nmemb, size_t size); /** * \brief Pointer to a custom memory freeing function @@ -390,7 +390,7 @@ typedef struct { * or when it is set to NULL, a pointer returned * by the standard malloc(). */ - void (*free)(void *opaque, void *ptr); + void (LZMA_API_CALL *free)(void *opaque, void *ptr); /** * \brief Pointer passed to .alloc() and .free() -- cgit v1.2.3