]> git.tdb.fi Git - libs/core.git/blob - source/core/types.h
1bd865db86475affc4688cccdbbd17771fc639f3
[libs/core.git] / source / core / types.h
1 /* $Id$
2
3 This file is part of libmspcore
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_CORE_TYPES_H_
9 #define MSP_CORE_TYPES_H_
10
11 #ifdef WIN32
12 #include <windows.h>
13 #else
14 #include <pthread.h>
15 #endif
16
17 namespace Msp {
18
19 #ifdef WIN32
20 typedef HANDLE ThreadHandle;
21 typedef HANDLE MutexHandle;
22 typedef HANDLE SemaphoreHandle;
23 #else
24 typedef pthread_t ThreadHandle;
25 typedef pthread_mutex_t MutexHandle;
26 typedef pthread_cond_t SemaphoreHandle;
27 #endif
28
29 } // namespace Msp
30
31 #endif