From: Wez Furlong Date: Mon, 20 May 2002 01:32:48 +0000 (+0000) Subject: Protect C code with extern "C" X-Git-Tag: RELEASE_0_4~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50f7427e69741acf9094a0f63c35503bfa4afca6;p=php Protect C code with extern "C" --- diff --git a/main/fopen_wrappers.h b/main/fopen_wrappers.h index 1a9ca6cc3a..3e2e84b199 100644 --- a/main/fopen_wrappers.h +++ b/main/fopen_wrappers.h @@ -20,6 +20,7 @@ #ifndef FOPEN_WRAPPERS_H #define FOPEN_WRAPPERS_H +BEGIN_EXTERN_C() #include "php_globals.h" PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC); @@ -34,6 +35,7 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char ** PHPAPI int php_is_url(char *path); PHPAPI char *php_strip_url_passwd(char *path); +END_EXTERN_C() #endif /* diff --git a/main/spprintf.h b/main/spprintf.h index 00e53d706e..1ba503d602 100644 --- a/main/spprintf.h +++ b/main/spprintf.h @@ -21,9 +21,11 @@ #include "snprintf.h" +BEGIN_EXTERN_C() extern int spprintf( char **pbuf, size_t max_len, const char *format, ...); PHPAPI extern int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap); +END_EXTERN_C() #endif /* SNPRINTF_H */