diff options
author | Wez Furlong <wez@php.net> | 2002-05-20 01:32:48 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-05-20 01:32:48 +0000 |
commit | 50f7427e69741acf9094a0f63c35503bfa4afca6 (patch) | |
tree | ae3aeb9d3ad1ec1099db48ebe69a47b6a58d9766 | |
parent | fc964e88d36bc39ea51a12e5ad8496d469c0cc80 (diff) | |
download | php-git-50f7427e69741acf9094a0f63c35503bfa4afca6.tar.gz |
Protect C code with extern "C"
-rw-r--r-- | main/fopen_wrappers.h | 2 | ||||
-rw-r--r-- | main/spprintf.h | 2 |
2 files changed, 4 insertions, 0 deletions
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 */ |