mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
7a8cade379
This initial checkin has no changes to any of the libgd code so it can be used as a basis for diffs. It also will not build currently because of this. The PHP gd checks need to be incorporated along with a bit of other config magic. It also shouldn't break the build and will only take effect if you use --with-gd=php right now.
18 lines
502 B
C
18 lines
502 B
C
#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 */
|
|
|