Made plugin loading work properly on Windows.

This commit is contained in:
Jan Vidar Krey
2011-09-08 01:00:32 +02:00
parent 0d8283930f
commit 39572c3684
4 changed files with 10 additions and 5 deletions

View File

@@ -256,4 +256,9 @@ typedef unsigned __int64 uint64_t;
#define NEED_GETOPT
#endif
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(_MSC_VER)
#define PLUGIN_API __declspec(dllexport)
#else
#define PLUGIN_API
#endif
#endif /* HAVE_UHUB_SYSTEM_H */