]> 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 f750936276b80d09684dbc09be3db7c5f0bbd613..3c59469a345ff9f036ee6ee232742b65daba0096 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 865633bc7d1e27c0cb6dc9046191a415f7d85bd4..de011f1767e9491e54fe50e5fa4d59d9b302a1fb 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 2416c7b8a51d04a398c5ad1d571b47ac8e2e05f1..a6bd82ad6b0f262b135539062b4bd351288fa206 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()