aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libidn/win
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/libidn/win
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/libidn/win')
-rw-r--r--contrib/libs/libidn/win/ac-stdint.h27
-rw-r--r--contrib/libs/libidn/win/config.h16
-rw-r--r--contrib/libs/libidn/win/idn-int.h19
-rw-r--r--contrib/libs/libidn/win/stdbool.h29
-rw-r--r--contrib/libs/libidn/win/unistd.h14
5 files changed, 105 insertions, 0 deletions
diff --git a/contrib/libs/libidn/win/ac-stdint.h b/contrib/libs/libidn/win/ac-stdint.h
new file mode 100644
index 0000000000..a3560eb49a
--- /dev/null
+++ b/contrib/libs/libidn/win/ac-stdint.h
@@ -0,0 +1,27 @@
+/* Copyright (C) 2008 Free Software Foundation, Inc.
+ Written by Adam Strzelecki <ono@java.pl>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1,
+ or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
+
+#ifndef _AC_STDINT_H
+#define _AC_STDINT_H 1
+#ifndef _GENERATED_STDINT_H
+#define _GENERATED_STDINT_H
+
+#include <stdint.h>
+
+#endif
+#endif
diff --git a/contrib/libs/libidn/win/config.h b/contrib/libs/libidn/win/config.h
new file mode 100644
index 0000000000..8282ad9e6d
--- /dev/null
+++ b/contrib/libs/libidn/win/config.h
@@ -0,0 +1,16 @@
+#ifndef _CONFIG_H
+#define _CONFIG_H
+
+#define PACKAGE "Libidn"
+#define PACKAGE_VERSION "1.9"
+
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+
+#define LOCALEDIR "."
+
+#if _MSC_VER && !__cplusplus
+# define inline __inline
+#endif
+
+#endif /* _CONFIG_H */
diff --git a/contrib/libs/libidn/win/idn-int.h b/contrib/libs/libidn/win/idn-int.h
new file mode 100644
index 0000000000..3339e2de1d
--- /dev/null
+++ b/contrib/libs/libidn/win/idn-int.h
@@ -0,0 +1,19 @@
+/* Copyright (C) 2008 Free Software Foundation, Inc.
+ Written by Adam Strzelecki <ono@java.pl>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1,
+ or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
+
+#include "ac-stdint.h"
diff --git a/contrib/libs/libidn/win/stdbool.h b/contrib/libs/libidn/win/stdbool.h
new file mode 100644
index 0000000000..a4302b9d2c
--- /dev/null
+++ b/contrib/libs/libidn/win/stdbool.h
@@ -0,0 +1,29 @@
+/* Copyright (C) 2008 Free Software Foundation, Inc.
+ Written by Adam Strzelecki <ono@java.pl>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1,
+ or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
+
+#ifndef _STDBOOL_H
+#define _STDBOOL_H
+
+#define _Bool signed char
+enum { false = 0, true = 1 };
+#define bool _Bool
+#define false 0
+#define true 1
+#define __bool_true_false_are_defined 1
+
+#endif /* _STDBOOL_H */
diff --git a/contrib/libs/libidn/win/unistd.h b/contrib/libs/libidn/win/unistd.h
new file mode 100644
index 0000000000..a0351cff2b
--- /dev/null
+++ b/contrib/libs/libidn/win/unistd.h
@@ -0,0 +1,14 @@
+#ifndef _LIBIDN_WIN_UNISTD_H
+#define _LIBIDN_WIN_UNISTD_H
+
+#ifndef _SSIZE_T_DEFINED
+# if defined(_WIN64)
+# define _SSIZE_T_DEFINED
+# define ssize_t __int64
+# else
+# define _SSIZE_T_DEFINED
+# define ssize_t int
+# endif
+#endif
+
+#endif // _LIBIDN_WIN_UNISTD_H