diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-21 10:11:53 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-21 10:11:53 +0000 |
commit | c80bc292b555c6666930790c399f6fac6226c468 (patch) | |
tree | 83a5cf2be27d2751f668ab1ef1ec051b8053d3df /protocols/Skype/pthread.h | |
parent | c11a4fe35d96f7f118a7286292bc33971180972b (diff) |
Skype and IMO2sProxy added, not adapted yet
git-svn-id: http://svn.miranda-ng.org/main/trunk@1091 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/pthread.h')
-rw-r--r-- | protocols/Skype/pthread.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/protocols/Skype/pthread.h b/protocols/Skype/pthread.h new file mode 100644 index 0000000000..1c9f3e3924 --- /dev/null +++ b/protocols/Skype/pthread.h @@ -0,0 +1,26 @@ +/*
+ * $Id: pthread.h,v 1.3 2003/10/05 04:03:05 gena01 Exp $
+ *
+ * Skype Miranda Plugin
+ *
+ * Authors: Gennady Feldman (aka Gena01)
+ * Laurent Marechal (aka Peorth)
+ *
+ * Code borrowed for Skype plugin. Fixed to compile on Mingw by G.Feldman
+ * Original Copyright (c) 2003 Robert Rainwater
+ *
+ * This code is under GPL and is based on AIM, MSN and Miranda source code.
+ * I want to thank Robert Rainwater and George Hazan for their code and support
+ * and for answering some of my questions during development of this plugin.
+ */
+#ifndef PTHREAD_H
+#define PTHREAD_H
+
+unsigned long pthread_create(void (*threadcode) (void *), void *arg);
+typedef CRITICAL_SECTION pthread_mutex_t;
+#define pthread_mutex_init(pmutex) InitializeCriticalSection(pmutex)
+#define pthread_mutex_destroy(pmutex) DeleteCriticalSection(pmutex)
+#define pthread_mutex_lock(pmutex) EnterCriticalSection(pmutex)
+#define pthread_mutex_unlock(pmutex) LeaveCriticalSection(pmutex)
+
+#endif
|