mdbx: refine attribute-based macros.

This commit is contained in:
Leonid Yuriev
2019-08-25 03:05:58 +03:00
parent 7780b76cf0
commit 137d652d77
11 changed files with 101 additions and 83 deletions

4
mdbx.h
View File

@@ -148,8 +148,8 @@ typedef pthread_t mdbx_tid_t;
#else
#define __dll_export
#endif
#elif defined(__GNUC__) || __has_attribute(visibility)
#define __dll_export __attribute__((visibility("default")))
#elif defined(__GNUC__) || __has_attribute(__visibility__)
#define __dll_export __attribute__((__visibility__("default")))
#else
#define __dll_export
#endif