From b1509f22892dc98057c750e7fae39ded5cea3b09 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 19 May 2012 18:01:32 +0000 Subject: added MirOTR git-svn-id: http://svn.miranda-ng.org/main/trunk@83 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirOTR/otr.vs/inc.vs/sys/errno.h | 0 plugins/MirOTR/otr.vs/inc.vs/sys/ipc.h | 0 plugins/MirOTR/otr.vs/inc.vs/sys/socket.h | 0 plugins/MirOTR/otr.vs/inc.vs/sys/time.h | 2 + plugins/MirOTR/otr.vs/inc.vs/sys/types.h | 49 +++++++++++++++++++++++++ plugins/MirOTR/otr.vs/inc.vs/sys/un.h | 0 plugins/MirOTR/otr.vs/inc.vs/unistd.h | 61 +++++++++++++++++++++++++++++++ 7 files changed, 112 insertions(+) create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/errno.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/ipc.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/socket.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/time.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/types.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/sys/un.h create mode 100644 plugins/MirOTR/otr.vs/inc.vs/unistd.h (limited to 'plugins/MirOTR/otr.vs/inc.vs') diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/errno.h b/plugins/MirOTR/otr.vs/inc.vs/sys/errno.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/ipc.h b/plugins/MirOTR/otr.vs/inc.vs/sys/ipc.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/socket.h b/plugins/MirOTR/otr.vs/inc.vs/sys/socket.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/time.h b/plugins/MirOTR/otr.vs/inc.vs/sys/time.h new file mode 100644 index 0000000000..038cf1f387 --- /dev/null +++ b/plugins/MirOTR/otr.vs/inc.vs/sys/time.h @@ -0,0 +1,2 @@ + +#include \ No newline at end of file diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/types.h b/plugins/MirOTR/otr.vs/inc.vs/sys/types.h new file mode 100644 index 0000000000..5a3e51c4a9 --- /dev/null +++ b/plugins/MirOTR/otr.vs/inc.vs/sys/types.h @@ -0,0 +1,49 @@ + +#pragma once + +#include "..\unistd.h" + + +#ifndef _TIME_T_DEFINED +typedef long time_t; +#define _TIME_T_DEFINED +#endif + + +#ifndef _INO_T_DEFINED + +typedef unsigned short _ino_t; /* i-node number (not used on DOS) */ + +#if !__STDC__ +/* Non-ANSI name for compatibility */ +typedef unsigned short ino_t; +#endif + +#define _INO_T_DEFINED +#endif + + +#ifndef _DEV_T_DEFINED + +typedef unsigned int _dev_t; /* device code */ + +#if !__STDC__ +/* Non-ANSI name for compatibility */ +typedef unsigned int dev_t; +#endif + +#define _DEV_T_DEFINED +#endif + + +#ifndef _OFF_T_DEFINED + +typedef long _off_t; /* file offset value */ + +#if !__STDC__ +/* Non-ANSI name for compatibility */ +typedef long off_t; +#endif + +#define _OFF_T_DEFINED +#endif diff --git a/plugins/MirOTR/otr.vs/inc.vs/sys/un.h b/plugins/MirOTR/otr.vs/inc.vs/sys/un.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/MirOTR/otr.vs/inc.vs/unistd.h b/plugins/MirOTR/otr.vs/inc.vs/unistd.h new file mode 100644 index 0000000000..6fe3882660 --- /dev/null +++ b/plugins/MirOTR/otr.vs/inc.vs/unistd.h @@ -0,0 +1,61 @@ + +#pragma once + +#include +#include +#include +#include + +#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 + +#pragma warning(disable : 4786) -- cgit v1.2.3