summaryrefslogtreecommitdiff
path: root/gpg.vs/inc.vs/unistd.h
diff options
context:
space:
mode:
authoradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-08-19 20:12:06 +0000
committeradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-08-19 20:12:06 +0000
commit11e5e8749eb7d4d3cfebfa49bbb7ea4624608647 (patch)
treec773fee94a63a078e5cb59bdbfd3165f1830b7ea /gpg.vs/inc.vs/unistd.h
parentc7e64af067562167b6941f3ad8383e3ceb817633 (diff)
initial commit with v0.8.6.1
git-svn-id: http://mirotr.googlecode.com/svn/trunk@2 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'gpg.vs/inc.vs/unistd.h')
-rw-r--r--gpg.vs/inc.vs/unistd.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/gpg.vs/inc.vs/unistd.h b/gpg.vs/inc.vs/unistd.h
new file mode 100644
index 0000000..c16a44c
--- /dev/null
+++ b/gpg.vs/inc.vs/unistd.h
@@ -0,0 +1,48 @@
+
+#pragma once
+
+#include <basetsd.h>
+#include <stddef.h>
+#include <errno.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
+
+// !s0rr0w!
+#define SIZEOF_UINT64_T 8
+#define UINT64_C(C) (C)
+typedef unsigned __int64 uint64_t;
+