|
// Copyright (c) 2017 The LevelDB Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
|
|
#ifndef STORAGE_LEVELDB_INCLUDE_EXPORT_H_
|
|
#define STORAGE_LEVELDB_INCLUDE_EXPORT_H_
|
|
|
|
#if !defined(LEVELDB_EXPORT)
|
|
|
|
#if defined(LEVELDB_SHARED_LIBRARY)
|
|
#if defined(OS_WIN)
|
|
|
|
#if defined(LEVELDB_COMPILE_LIBRARY)
|
|
#define LEVELDB_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define LEVELDB_EXPORT __declspec(dllimport)
|
|
#endif // defined(LEVELDB_COMPILE_LIBRARY)
|
|
|
|
#else // defined(OS_WIN)
|
|
#if defined(LEVELDB_COMPILE_LIBRARY)
|
|
#define LEVELDB_EXPORT __attribute__((visibility("default")))
|
|
#else
|
|
#define LEVELDB_EXPORT
|
|
#endif
|
|
#endif // defined(OS_WIN)
|
|
|
|
#else // defined(LEVELDB_SHARED_LIBRARY)
|
|
#define LEVELDB_EXPORT
|
|
#endif
|
|
|
|
#endif // !defined(LEVELDB_EXPORT)
|
|
|
|
#endif // STORAGE_LEVELDB_INCLUDE_EXPORT_H_
|