<libroxml
version="3.0.2"
/>
contact:
tristan.lelong@libroxml.net
src
roxml_win32_native.h
Go to the documentation of this file.
1
12
#ifndef ROXML_WIN32_NATIVE_THREAD_H
13
#define ROXML_WIN32_NATIVE_THREAD_H
14
15
#if defined(_MSC_VER) && _MSC_VER >= 1400
16
#ifndef _CRT_SECURE_NO_DEPRECATE
17
#define _CRT_SECURE_NO_DEPRECATE
18
#endif
19
#pragma warning(disable: 4996)
20
#endif
21
22
#define WIN32_LEAN_AND_MEAN
23
#include <windows.h>
24
25
typedef
HANDLE pthread_t;
26
typedef
CRITICAL_SECTION pthread_mutex_t;
27
28
#define pthread_self() ((unsigned long int) GetCurrentThread())
29
#define pthread_mutex_init(a, b) ({int ret = 0; InitializeCriticalSection(a); ret;})
30
#define pthread_mutex_lock(a) ({int ret = 0; EnterCriticalSection(a); ret;})
31
#define pthread_mutex_unlock(a) ({int ret = 0; LeaveCriticalSection(a); ret;})
32
#define pthread_mutex_destroy(a) ({int ret = 0; DeleteCriticalSection(a); ret; })
33
34
#ifndef ENODATA
35
#define ENODATA 61
36
#endif
37
38
#endif
/* ROXML_WIN32_NATIVE_THREAD_H */
Generated on Tue Jul 2 2024 21:08:20 for libroxml by
1.9.8