com php-src: fix extern "C": ext/intl/intl_common.h
| From: | Anatol Belski | Date: | Wed, 01 Apr 2015 11:18:52 +0000 |
| Subject: | com php-src: fix extern "C": ext/intl/intl_common.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86017@lists.php.net to get a copy of this message | ||
Commit: e271ace5f85ba7909b05d4779b204000ac5a9de0
Author: Anatol Belski <ab@php.net> Wed, 1 Apr 2015 13:17:43 +0200
Parents: ca1ef2749d095c1daa6ea2beef2d7fc0517b9518
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e271ace5f85ba7909b05d4779b204000ac5a9de0
Log:
fix extern "C"
now, it shouldn't matter where intl_common.h is included,
not need for extra putting it into extern C
Changed paths:
M ext/intl/intl_common.h
Diff:
diff --git a/ext/intl/intl_common.h b/ext/intl/intl_common.h
index 61da273..954d2bd 100644
--- a/ext/intl/intl_common.h
+++ b/ext/intl/intl_common.h
@@ -20,7 +20,9 @@
#define INTL_COMMON_H
/* Auxiliary macros */
+BEGIN_EXTERN_C()
#include <php.h>
+END_EXTERN_C()
#include <unicode/utypes.h>
#ifndef UBYTES
@@ -41,6 +43,8 @@
#define INTL_Z_STRVAL_P(str) (UChar*) Z_STRVAL_P(str)
#define INTL_Z_STRLEN_P(str) UCHARS( Z_STRLEN_P(str) )
+BEGIN_EXTERN_C()
extern zend_class_entry *IntlException_ce_ptr;
+END_EXTERN_C()
#endif /* INTL_COMMON_H */