summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/libotr-3.2.0/inc/unistd.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-19 22:15:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-19 22:15:58 +0000
commit77d2929512ff62e421e9bfee659cc86973fc7df7 (patch)
treeeaeaee2b6f7ef7498cc5aa12b340b11cb125638b /plugins/MirOTR/libotr-3.2.0/inc/unistd.h
parent665935b0f99a4b9585f9afe9c9730931a3c94f85 (diff)
files structure reorganization
git-svn-id: http://svn.miranda-ng.org/main/trunk@492 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/libotr-3.2.0/inc/unistd.h')
-rw-r--r--plugins/MirOTR/libotr-3.2.0/inc/unistd.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/MirOTR/libotr-3.2.0/inc/unistd.h b/plugins/MirOTR/libotr-3.2.0/inc/unistd.h
new file mode 100644
index 0000000000..6fe3882660
--- /dev/null
+++ b/plugins/MirOTR/libotr-3.2.0/inc/unistd.h
@@ -0,0 +1,61 @@
+
+#pragma once
+
+#include <basetsd.h>
+#include <stddef.h>
+#include <errno.h>
+#include <time.h>
+
+#ifndef S_IWUSR
+#define S_IWUSR _S_IWRITE
+#endif
+
+#ifndef S_IRUSR
+#define S_IRUSR _S_IREAD
+#endif
+
+#ifndef S_ISREG
+#define S_ISREG(A) (1)
+#endif
+
+#ifndef _SIZE_T_DEFINED
+typedef unsigned int size_t;
+#define _SIZE_T_DEFINED
+#endif
+
+#ifndef _SSIZE_T_DEFINED
+typedef signed int ssize_t;
+#define _SSIZE_T_DEFINED
+#endif
+
+#ifndef _PID_T_DEFINED
+typedef int pid_t;
+#define _PID_T_DEFINED
+#endif
+
+#ifndef offsetof
+#define offsetof(type, member) ((size_t) &((type *)0)->member)
+#endif
+
+/* Define to `int' if unavailable. */
+#ifndef socklen_t
+#define socklen_t int
+#endif
+
+#ifndef strcasecmp
+#define strcasecmp stricmp
+#endif
+
+#ifndef strncasecmp
+#define strncasecmp strnicmp
+#endif
+
+// !s0rr0w!
+#define SIZEOF_UINT64_T 8
+#define UINT64_C(C) (C)
+typedef unsigned __int64 uint64_t;
+
+#define _WIN32_WINNT 0x500
+#include <windows.h>
+
+#pragma warning(disable : 4786)