Skip to content

Commit

Permalink
Export symbols without DLL mangling on Windows if FFMS_STATIC is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Mar 14, 2016
1 parent ca5ef92 commit 06bcf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ffms.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#endif

// And now for some symbol hide-and-seek...
#if defined(_WIN32) // MSVC
#if defined(_WIN32) && !defined(FFMS_STATIC) // MSVC
# if defined(FFMS_EXPORTS) // building the FFMS2 library itself, with visible API symbols
# define FFMS_API(ret) FFMS_EXTERN_C __declspec(dllexport) ret FFMS_CC
# define FFMS_DEPRECATED_API(ret) FFMS_EXTERN_C FFMS_DEPRECATED __declspec(dllexport) ret FFMS_CC
Expand Down

0 comments on commit 06bcf23

Please sign in to comment.