diff options
Diffstat (limited to 'ext/gd/libgd/gdhelpers.h')
-rw-r--r-- | ext/gd/libgd/gdhelpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/gd/libgd/gdhelpers.h b/ext/gd/libgd/gdhelpers.h new file mode 100644 index 0000000000..aefcc18b99 --- /dev/null +++ b/ext/gd/libgd/gdhelpers.h @@ -0,0 +1,17 @@ +#ifndef GDHELPERS_H +#define GDHELPERS_H 1 + +/* 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 */ + |