diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-04-04 19:40:08 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-04-04 19:40:08 +0000 |
commit | c36e45256bf8c8a86c27e6991b1f82caaa12fa39 (patch) | |
tree | 0acecb3423763c8e211c5caddb1ce9b3e9eb498c /src/ne_alloc.h | |
parent | d7bc8e21ed9556182000c693401f160e832c4c42 (diff) | |
download | neon-c36e45256bf8c8a86c27e6991b1f82caaa12fa39.tar.gz |
* src/ne_alloc.c, src/ne_alloc.h (ne_oom_callback): Use a typedef for
the callback argument, to fix warnings with OpenWatcom; patch by
Vitali E. Pelenyov.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@545 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_alloc.h')
-rw-r--r-- | src/ne_alloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ne_alloc.h b/src/ne_alloc.h index 3a3e2ec..a82940d 100644 --- a/src/ne_alloc.h +++ b/src/ne_alloc.h @@ -1,6 +1,6 @@ /* Replacement memory allocation handling etc. - Copyright (C) 1999-2004, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 1999-2005, Joe Orton <joe@manyfish.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -32,8 +32,10 @@ BEGIN_NEON_DECLS +typedef void (*ne_oom_callback_fn)(void); + /* Set callback which is called if malloc() returns NULL. */ -void ne_oom_callback(void (*callback)(void)); +void ne_oom_callback(ne_oom_callback_fn callback); #ifndef NEON_MEMLEAK /* Replacements for standard C library memory allocation functions, |