Skip to content

Commit

Permalink
Simplify declspec logic
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Mar 1, 2024
1 parent fa1c57a commit 451feb5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/apngasm_python.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#if defined _WIN32 || defined __CYGWIN__
# ifdef __GNUC__
# define APNGASM_PY_DECLSPEC __attribute__ ((visibility("default")))
#if defined(_WIN32) && !defined(__GNUC__)
# ifdef _apngasm_python_EXPORTS
# define APNGASM_PY_DECLSPEC __declspec(dllexport)
# else
# ifdef _apngasm_python_EXPORTS
# define APNGASM_PY_DECLSPEC __declspec(dllexport)
# else
# define APNGASM_PY_DECLSPEC __declspec(dllimport)
# endif
# define APNGASM_PY_DECLSPEC __declspec(dllimport)
# endif
#else
# define APNGASM_PY_DECLSPEC __attribute__ ((visibility("default")))
Expand Down

0 comments on commit 451feb5

Please sign in to comment.