Skip to content
Snippets Groups Projects
Commit a75d82e8 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Use CMake-generated export headers.

parent a8b7da57
No related branches found
No related tags found
1 merge request!17Use CMake-generated export headers.
// (C) Copyright 2019 by Autodesk, Inc.
#ifndef BASEDLLEXPORT
#if defined(WIN32) || defined(_WIN32)
#ifdef BASEDLL
#ifdef USEBASE
#define BASEDLLEXPORT __declspec(dllimport)
#define BASEDLLEXPORTONLY
#else
#define BASEDLLEXPORT __declspec(dllexport)
#define BASEDLLEXPORTONLY __declspec(dllexport)
#endif
#else
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#endif
#else // non-Windows symbols export:
#ifdef BASEDLL
// only export symbols if BASEDLL is defined (same behavior as Windows)
#define BASEDLLEXPORT __attribute__((visibility("default")))
#define BASEDLLEXPORTONLY BASEDLLEXPORT
#else // BASEDLL not defined
// this allows building Base as static library without exposing its symbols
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#endif // BASEDLL
#endif
#endif
#undef min
#undef max
#include <Base/Config/Export.hh>
#define BASEDLLEXPORT BASE_EXPORT
#if defined(_MSC_VER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment