]> granicus.if.org Git - php/commitdiff
- Add extern declarations for fixing the build with some compilers
authorJohannes Schlüter <johannes@php.net>
Tue, 19 Jan 2010 10:44:36 +0000 (10:44 +0000)
committerJohannes Schlüter <johannes@php.net>
Tue, 19 Jan 2010 10:44:36 +0000 (10:44 +0000)
ext/spl/spl_fixedarray.h
ext/spl/spl_heap.h
main/php_getopt.h

index 62b9005fe83301f6553cb012b162f8fe9f09d32d..9931fda7c984d0be8d56c088a40291c6f5a722d2 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef SPL_FIXEDARRAY_H
 #define SPL_FIXEDARRAY_H
 
-PHPAPI zend_class_entry *spl_ce_SplFixedArray;
+extern PHPAPI zend_class_entry *spl_ce_SplFixedArray;
 
 PHP_MINIT_FUNCTION(spl_fixedarray);
 
index dfa2e3b696edb3d096b478243817fe968a1a98d0..0931ba728acee849836f907d141bc4852a9479d4 100644 (file)
 #include "php.h"
 #include "php_spl.h"
 
-PHPAPI zend_class_entry *spl_ce_SplHeap;
-PHPAPI zend_class_entry *spl_ce_SplMinHeap;
-PHPAPI zend_class_entry *spl_ce_SplMaxHeap;
+extern PHPAPI zend_class_entry *spl_ce_SplHeap;
+extern PHPAPI zend_class_entry *spl_ce_SplMinHeap;
+extern PHPAPI zend_class_entry *spl_ce_SplMaxHeap;
 
-PHPAPI zend_class_entry *spl_ce_SplPriorityQueue;
+extern PHPAPI zend_class_entry *spl_ce_SplPriorityQueue;
 
 PHP_MINIT_FUNCTION(spl_heap);
 
index 043ea85295c42e42cbfe0518554ea751bfa5f890..6b08fd54dc1d0c59929f04691b68dc19dbe56ab6 100644 (file)
@@ -41,7 +41,7 @@ typedef struct _opt_struct {
 
 BEGIN_EXTERN_C()
 /* holds the index of the latest fetched element from the opts array */
-PHPAPI int php_optidx;
+extern PHPAPI int php_optidx;
 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start);
 END_EXTERN_C()