Skip to content

Commit

Permalink
[Win] Disable ALPAQA_DL_PROBLEM_EXPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Jan 31, 2024
1 parent 229e83d commit 67fb6c3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/interop/dl-api/include/alpaqa/dl/dl-problem.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@

#define ALPAQA_DL_ABI_VERSION 0xA1A000000004

#ifdef _WIN32
#ifdef ALPAQA_DL_PROBLEM_EXPORTS // TODO: what's the right approach on Windows?
#define ALPAQA_DL_PROBLEM_EXPORT __declspec(dllexport)
#else
#define ALPAQA_DL_PROBLEM_EXPORT __declspec(dllimport)
#endif
#ifdef ALPAQA_DL_PROBLEM_EXPORT
#elif defined(_WIN32)
#define ALPAQA_DL_PROBLEM_EXPORT
#elif defined(__GNUC__)
#define ALPAQA_DL_PROBLEM_EXPORT __attribute__((visibility("default")))
#else
Expand Down

0 comments on commit 67fb6c3

Please sign in to comment.