]> granicus.if.org Git - php/commitdiff
Protect C code with extern "C"
authorWez Furlong <wez@php.net>
Mon, 20 May 2002 01:32:48 +0000 (01:32 +0000)
committerWez Furlong <wez@php.net>
Mon, 20 May 2002 01:32:48 +0000 (01:32 +0000)
main/fopen_wrappers.h
main/spprintf.h

index 1a9ca6cc3a894a02f9674934b0be9a48918f7344..3e2e84b19930674b433e628e703360c7df96a2d6 100644 (file)
@@ -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
 /*
index 00e53d706ede3b8b7264323b8320e927c68f4f99..1ba503d602bf764419d2660ec91a9e9d8ff79a23 100644 (file)
 
 #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 */