summaryrefslogtreecommitdiff
path: root/main/php_getopt.h
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2010-01-19 10:44:36 +0000
committerJohannes Schlüter <johannes@php.net>2010-01-19 10:44:36 +0000
commit00afa7278bd2b5cafa757e89a6b104c28195c3b5 (patch)
treec724ef4784ff038556aa5499356d35099866f408 /main/php_getopt.h
parent7e1f29e930bfa26b8de04862556e1c49fc91eda7 (diff)
downloadphp-git-00afa7278bd2b5cafa757e89a6b104c28195c3b5.tar.gz
- Add extern declarations for fixing the build with some compilers
Diffstat (limited to 'main/php_getopt.h')
-rw-r--r--main/php_getopt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_getopt.h b/main/php_getopt.h
index 043ea85295..6b08fd54dc 100644
--- a/main/php_getopt.h
+++ b/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()