Skip to content

Commit c7ec830

Browse files
Merge pull request #808 from henryborchers/msvc-mediaconchdll
Support MSVC compiler for MediaConchDLL
2 parents 0bb5423 + 3431d2b commit c7ec830

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Source/Lib/Lib.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#include <ZenLib/File.h>
2020
#if !defined(WINDOWS)
2121
#include <unistd.h>
22+
#else
23+
#include <windows.h>
2224
#endif //!defined(WINDOWS)
2325
#include <algorithm>
2426

Source/Lib/MediaConchDLL.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ typedef enum MediaConch_report_t
4949
report_Max,
5050
} MediaConch_report_c;
5151

52+
#if defined(_MSC_VER)
53+
#define MEDIACONCH_EXPORT __declspec(dllexport)
54+
#else
5255
#define MEDIACONCH_EXPORT __attribute__ ((visibility("default")))
56+
#endif
5357

5458
#ifdef __cplusplus
5559
extern "C"

0 commit comments

Comments
 (0)