mdbx: use underscores for GNU-attributes.

Change-Id: Iefd371dd91da1db8ee86554208536b3004535317
This commit is contained in:
Leonid Yuriev
2020-02-08 12:41:41 +03:00
committed by Leo Yuriev
parent 2db93efb14
commit 2356f3281b
2 changed files with 10 additions and 14 deletions

8
mdbx.h
View File

@@ -623,8 +623,8 @@ typedef pthread_t mdbx_tid_t;
#ifndef __dll_export
#if defined(_WIN32) || defined(__CYGWIN__)
#if defined(__GNUC__) || __has_attribute(dllexport)
#define __dll_export __attribute__((dllexport))
#if defined(__GNUC__) || __has_attribute(__dllexport__)
#define __dll_export __attribute__((__dllexport__))
#elif defined(_MSC_VER)
#define __dll_export __declspec(dllexport)
#else
@@ -639,8 +639,8 @@ typedef pthread_t mdbx_tid_t;
#ifndef __dll_import
#if defined(_WIN32) || defined(__CYGWIN__)
#if defined(__GNUC__) || __has_attribute(dllimport)
#define __dll_import __attribute__((dllimport))
#if defined(__GNUC__) || __has_attribute(__dllimport__)
#define __dll_import __attribute__((__dllimport__))
#elif defined(_MSC_VER)
#define __dll_import __declspec(dllimport)
#else