mirror of
https://github.com/php/php-src.git
synced 2024-10-11 03:22:41 +00:00
a24534a1ed
I still need to add a configure check for the gdIOCtx struct changes so building against older external gd libs will work again.
20 lines
526 B
C
20 lines
526 B
C
#ifndef GDHELPERS_H
|
|
#define GDHELPERS_H 1
|
|
|
|
#include <sys/types.h>
|
|
|
|
/* TBB: strtok_r is not universal; provide an implementation of it. */
|
|
|
|
extern char *gd_strtok_r(char *s, char *sep, char **state);
|
|
|
|
/* These functions wrap memory management. gdFree is
|
|
in gd.h, where callers can utilize it to correctly
|
|
free memory allocated by these functions with the
|
|
right version of free(). */
|
|
void *gdCalloc(size_t nmemb, size_t size);
|
|
void *gdMalloc(size_t size);
|
|
void *gdRealloc(void *ptr, size_t size);
|
|
|
|
#endif /* GDHELPERS_H */
|
|
|