Browse Source

- Add extern declarations for fixing the build with some compilers

experimental/the_5_4_that_isnt_5_4
Johannes Schlüter 17 years ago
parent
commit
00afa7278b
  1. 2
      ext/spl/spl_fixedarray.h
  2. 8
      ext/spl/spl_heap.h
  3. 2
      main/php_getopt.h

2
ext/spl/spl_fixedarray.h

@ -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);

8
ext/spl/spl_heap.h

@ -24,11 +24,11 @@
#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);

2
main/php_getopt.h

@ -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()

Loading…
Cancel
Save