Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CoMISo
Base
Commits
a75d82e8
Commit
a75d82e8
authored
3 months ago
by
Martin Heistermann
Browse files
Options
Downloads
Patches
Plain Diff
Use CMake-generated export headers.
parent
a8b7da57
No related branches found
No related tags found
1 merge request
!17
Use CMake-generated export headers.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Config/BaseDefines.hh
+2
-29
2 additions, 29 deletions
Config/BaseDefines.hh
with
2 additions
and
29 deletions
Config/BaseDefines.hh
+
2
−
29
View file @
a75d82e8
// (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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment