summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_plain_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/streams/php_stream_plain_wrapper.h')
-rw-r--r--main/streams/php_stream_plain_wrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/streams/php_stream_plain_wrapper.h b/main/streams/php_stream_plain_wrapper.h
index 9a23527532..94fc87de3d 100644
--- a/main/streams/php_stream_plain_wrapper.h
+++ b/main/streams/php_stream_plain_wrapper.h
@@ -23,6 +23,8 @@
/* operations for a plain file; use the php_stream_fopen_XXX funcs below */
PHPAPI extern php_stream_ops php_stream_stdio_ops;
+BEGIN_EXTERN_C()
+
/* like fopen, but returns a stream */
PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC);
#define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened), 0 STREAMS_CC TSRMLS_CC)
@@ -51,6 +53,8 @@ PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char
PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int options, char **opened_path STREAMS_DC TSRMLS_DC);
#define php_stream_open_wrapper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (options), (opened_path) STREAMS_CC TSRMLS_CC)
+END_EXTERN_C()
+
/*
* Local variables:
* tab-width: 4