mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Adding PHPAPI needed for exif on Win32
This commit is contained in:
parent
c000d491d7
commit
643fb6dcdf
@ -276,7 +276,7 @@ PHPAPI size_t _php_stream_passthru(php_stream * src STREAMS_DC TSRMLS_DC);
|
|||||||
#define php_stream_error(stream) (0)
|
#define php_stream_error(stream) (0)
|
||||||
|
|
||||||
/* operations for a stdio FILE; use the php_stream_fopen_XXX funcs below */
|
/* operations for a stdio FILE; use the php_stream_fopen_XXX funcs below */
|
||||||
extern php_stream_ops php_stream_stdio_ops;
|
PHPAPI extern php_stream_ops php_stream_stdio_ops;
|
||||||
/* like fopen, but returns a stream */
|
/* like fopen, but returns a stream */
|
||||||
PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path STREAMS_DC TSRMLS_DC);
|
PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path STREAMS_DC TSRMLS_DC);
|
||||||
#define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened) STREAMS_CC TSRMLS_CC)
|
#define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened) STREAMS_CC TSRMLS_CC)
|
||||||
|
@ -605,7 +605,7 @@ static int xbuf_format_converter(register xbuffy * xbuf, const char *fmt, va_lis
|
|||||||
/*
|
/*
|
||||||
* This is the general purpose conversion function.
|
* This is the general purpose conversion function.
|
||||||
*/
|
*/
|
||||||
int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap)
|
PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap)
|
||||||
{
|
{
|
||||||
xbuffy xbuf;
|
xbuffy xbuf;
|
||||||
int cc;
|
int cc;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
extern int spprintf( char **pbuf, size_t max_len, const char *format, ...);
|
extern int spprintf( char **pbuf, size_t max_len, const char *format, ...);
|
||||||
|
|
||||||
extern int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
|
PHPAPI extern int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
|
||||||
|
|
||||||
#endif /* SNPRINTF_H */
|
#endif /* SNPRINTF_H */
|
||||||
|
|
||||||
|
@ -737,7 +737,7 @@ static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC
|
|||||||
return fstat(fd, &ssb->sb);
|
return fstat(fd, &ssb->sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
php_stream_ops php_stream_stdio_ops = {
|
PHPAPI php_stream_ops php_stream_stdio_ops = {
|
||||||
php_stdiop_write, php_stdiop_read,
|
php_stdiop_write, php_stdiop_read,
|
||||||
php_stdiop_close, php_stdiop_flush,
|
php_stdiop_close, php_stdiop_flush,
|
||||||
"STDIO",
|
"STDIO",
|
||||||
|
Loading…
Reference in New Issue
Block a user