mdbx: fix mode_t typedef.

Fix https://github.com/leo-yuriev/libmdbx/issues/15

Change-Id: I32bb6b0fbc710c3706a66b398711c29cb6b9a241
This commit is contained in:
Leo Yuriev 2017-08-16 11:19:25 +03:00
parent 728252058d
commit 876faab1d8

6
mdbx.h
View File

@ -1,4 +1,4 @@
/*
/*
* Copyright 2015-2017 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
@ -70,7 +70,9 @@
#include <windows.h>
#include <winnt.h>
typedef unsigned mode_t;
#ifndef __mode_t_defined
typedef unsigned short mode_t;
#endif
typedef HANDLE mdbx_filehandle_t;
typedef DWORD mdbx_pid_t;
typedef DWORD mdbx_tid_t;