#include "php.h"
-#if HAVE_LIBINTL
+#ifdef HAVE_LIBINTL
#include <stdio.h>
#include "ext/standard/info.h"
}
/* }}} */
-#if HAVE_NGETTEXT
+#ifdef HAVE_NGETTEXT
/* {{{ proto string ngettext(string MSGID1, string MSGID2, int N)
Plural version of gettext() */
PHP_FUNCTION(ngettext)
/* }}} */
#endif
-#if HAVE_DNGETTEXT
+#ifdef HAVE_DNGETTEXT
/* {{{ proto string dngettext(string domain, string msgid1, string msgid2, int count)
Plural version of dgettext() */
PHP_FUNCTION(dngettext)
/* }}} */
#endif
-#if HAVE_DCNGETTEXT
+#ifdef HAVE_DCNGETTEXT
/* {{{ proto string dcngettext(string domain, string msgid1, string msgid2, int n, int category)
Plural version of dcgettext() */
PHP_FUNCTION(dcngettext)
/* }}} */
#endif
-#if HAVE_BIND_TEXTDOMAIN_CODESET
+#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
/* {{{ proto string bind_textdomain_codeset(string domain, string codeset)
Specify the character encoding in which the messages from the DOMAIN message catalog will be returned. */
function bindtextdomain(string $domain_name, string $dir): string|false {}
-#if HAVE_NGETTEXT
+#ifdef HAVE_NGETTEXT
function ngettext(string $msgid1, string $msgid2, int $n): string|false {}
#endif
-#if HAVE_DNGETTEXT
+#ifdef HAVE_DNGETTEXT
function dngettext(string $domain, string $msgid1, string $msgid2, int $count): string|false {}
#endif
-#if HAVE_DCNGETTEXT
+#ifdef HAVE_DCNGETTEXT
function dcngettext(string $domain, string $msgid1, string $msgid2, int $count, int $category): string|false {}
#endif
-#if HAVE_BIND_TEXTDOMAIN_CODESET
+#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
function bind_textdomain_codeset(string $domain, string $codeset): string|false {}
#endif
ZEND_ARG_TYPE_INFO(0, dir, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#if HAVE_NGETTEXT
+#if defined(HAVE_NGETTEXT)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ngettext, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid2, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
-#if HAVE_DNGETTEXT
+#if defined(HAVE_DNGETTEXT)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dngettext, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
-#if HAVE_DCNGETTEXT
+#if defined(HAVE_DCNGETTEXT)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dcngettext, 0, 5, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
-#if HAVE_BIND_TEXTDOMAIN_CODESET
+#if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bind_textdomain_codeset, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, codeset, IS_STRING, 0)
ZEND_FUNCTION(dgettext);
ZEND_FUNCTION(dcgettext);
ZEND_FUNCTION(bindtextdomain);
-#if HAVE_NGETTEXT
+#if defined(HAVE_NGETTEXT)
ZEND_FUNCTION(ngettext);
#endif
-#if HAVE_DNGETTEXT
+#if defined(HAVE_DNGETTEXT)
ZEND_FUNCTION(dngettext);
#endif
-#if HAVE_DCNGETTEXT
+#if defined(HAVE_DCNGETTEXT)
ZEND_FUNCTION(dcngettext);
#endif
-#if HAVE_BIND_TEXTDOMAIN_CODESET
+#if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
ZEND_FUNCTION(bind_textdomain_codeset);
#endif
ZEND_FE(dgettext, arginfo_dgettext)
ZEND_FE(dcgettext, arginfo_dcgettext)
ZEND_FE(bindtextdomain, arginfo_bindtextdomain)
-#if HAVE_NGETTEXT
+#if defined(HAVE_NGETTEXT)
ZEND_FE(ngettext, arginfo_ngettext)
#endif
-#if HAVE_DNGETTEXT
+#if defined(HAVE_DNGETTEXT)
ZEND_FE(dngettext, arginfo_dngettext)
#endif
-#if HAVE_DCNGETTEXT
+#if defined(HAVE_DCNGETTEXT)
ZEND_FE(dcngettext, arginfo_dcngettext)
#endif
-#if HAVE_BIND_TEXTDOMAIN_CODESET
+#if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
ZEND_FE(bind_textdomain_codeset, arginfo_bind_textdomain_codeset)
#endif
ZEND_FE_END