<libroxml  version="3.0.2" />
contact: tristan.lelong@libroxml.net
Macros | Typedefs
roxml_win32_native.h File Reference

special definitions for windows native build More...

#include <windows.h>

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define pthread_self()   ((unsigned long int) GetCurrentThread())
 
#define pthread_mutex_init(a, b)   ({int ret = 0; InitializeCriticalSection(a); ret;})
 
#define pthread_mutex_lock(a)   ({int ret = 0; EnterCriticalSection(a); ret;})
 
#define pthread_mutex_unlock(a)   ({int ret = 0; LeaveCriticalSection(a); ret;})
 
#define pthread_mutex_destroy(a)   ({int ret = 0; DeleteCriticalSection(a); ret; })
 
#define ENODATA   61
 

Typedefs

typedef HANDLE pthread_t
 
typedef CRITICAL_SECTION pthread_mutex_t
 

Detailed Description

special definitions for windows native build

(C) Copyright 2014 Tristan Lelong trist.nosp@m.an.l.nosp@m.elong.nosp@m.@lib.nosp@m.roxml.nosp@m..net

SPDX-Licence-Identifier: LGPL-2.1+ The author added a static linking exception, see License.txt.

Definition in file roxml_win32_native.h.

Macro Definition Documentation

◆ ENODATA

#define ENODATA   61

Definition at line 35 of file roxml_win32_native.h.

◆ pthread_mutex_destroy

#define pthread_mutex_destroy (   a)    ({int ret = 0; DeleteCriticalSection(a); ret; })

Definition at line 32 of file roxml_win32_native.h.

◆ pthread_mutex_init

#define pthread_mutex_init (   a,
 
)    ({int ret = 0; InitializeCriticalSection(a); ret;})

Definition at line 29 of file roxml_win32_native.h.

◆ pthread_mutex_lock

#define pthread_mutex_lock (   a)    ({int ret = 0; EnterCriticalSection(a); ret;})

Definition at line 30 of file roxml_win32_native.h.

◆ pthread_mutex_unlock

#define pthread_mutex_unlock (   a)    ({int ret = 0; LeaveCriticalSection(a); ret;})

Definition at line 31 of file roxml_win32_native.h.

◆ pthread_self

#define pthread_self ( )    ((unsigned long int) GetCurrentThread())

Definition at line 28 of file roxml_win32_native.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 22 of file roxml_win32_native.h.

Typedef Documentation

◆ pthread_mutex_t

typedef CRITICAL_SECTION pthread_mutex_t

Definition at line 26 of file roxml_win32_native.h.

◆ pthread_t

typedef HANDLE pthread_t

Definition at line 25 of file roxml_win32_native.h.