#include <errno.h>
#ifdef __GNUC__
-# ifdef linux
+# ifdef __linux__
function psi\errno() : int {
return __errno_location() as to_int(*__errno_location);
}
-#ifdef linux
+#ifdef __linux__
lib "anl";
#endif
-#ifdef linux
+#ifdef __linux__
lib "crypt";
#endif
-#ifdef linux /* old, anyway */
+#ifdef __linux__ /* old, anyway */
lib "rt";
#endif
+#ifdef __linux__
+lib "crypt";
+#endif
+
#include <stdlib.h>
function test\calc1() : array {
-// libidn
-lib "idn";
+#ifdef __linux__
+lib "crypt";
+#endif
#include <stdlib.h>
+
+lib "idn";
#include <idna.h>
function idn\utf8_to_ascii(string $host, string &$result, int $flags = 0) : int {