reactos/rosapps/smartpdf/poppler/goo/FastAlloc.h
Klemens Friedl 435a566751 SmartPDF - lightweight pdf viewer app for rosapps
* sumatrapdf - vendor import
* everything compiles (libjpeg, poppler, fitz, sumatrapdf)
* does NOT link

(remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it)

svn path=/trunk/; revision=29295
2007-09-29 08:39:35 +00:00

28 lines
532 B
C

#ifndef FAST_ALLOC_H_
#define FAST_ALLOC_H_
/* Written by: Krzysztof Kowalczyk (http://blog.kowalczyk.info)
License: Public Domain (http://creativecommons.org/licenses/publicdomain/)
Take all the code you want, I'll just write more.
*/
#ifdef _WIN32
#include <stddef.h> // size_t on windows
#else
#include <sys/types.h> // size_t
#endif
#ifdef __cplusplus
extern "C"
{
#endif
void * fast_malloc(size_t size);
void fast_free(void *p);
void * fast_realloc(void *oldP, size_t size);
#ifdef __cplusplus
}
#endif
#endif