mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +08:00
mdbx: more __has_include().
This commit is contained in:
parent
f5571e4027
commit
86274513f9
18
src/osal.h
18
src/osal.h
@ -103,19 +103,23 @@ typedef struct {
|
|||||||
typedef pthread_mutex_t mdbx_fastmutex_t;
|
typedef pthread_mutex_t mdbx_fastmutex_t;
|
||||||
#endif /* Platform */
|
#endif /* Platform */
|
||||||
|
|
||||||
#ifndef SSIZE_MAX
|
/* *INDENT-OFF* */
|
||||||
#define SSIZE_MAX INTPTR_MAX
|
/* clang-format off */
|
||||||
#endif
|
#if defined(HAVE_SYS_STAT_H) || __has_include(<sys/stat.h>)
|
||||||
|
|
||||||
#ifdef HAVE_SYS_STAT_H
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#if defined(HAVE_SYS_TYPES_H) || __has_include(<sys/types.h>)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_FILE_H
|
#if defined(HAVE_SYS_FILE_H) || __has_include(<sys/file.h>)
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#endif
|
#endif
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
|
#ifndef SSIZE_MAX
|
||||||
|
#define SSIZE_MAX INTPTR_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(i386) || defined(__386) || defined(__i386) || defined(__i386__) || \
|
#if defined(i386) || defined(__386) || defined(__i386) || defined(__i386__) || \
|
||||||
defined(i486) || defined(__i486) || defined(__i486__) || \
|
defined(i486) || defined(__i486) || defined(__i486__) || \
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#ifdef HAVE_IEEE754_H
|
#if defined(HAVE_IEEE754_H) || __has_include(<ieee754.h>)
|
||||||
#include <ieee754.h>
|
#include <ieee754.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user