Skip to content

Commit

Permalink
Define the DARKRADIANT_DLLEXPORT macro for OS X to control the Regist…
Browse files Browse the repository at this point in the history
…erModule symbol visibility
  • Loading branch information
codereader committed Mar 4, 2017
1 parent d0bc204 commit 7afcf3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/imodule.h
Expand Up @@ -332,6 +332,8 @@ namespace module {
#else
#define DARKRADIANT_DLLEXPORT __stdcall
#endif
#elif defined(__APPLE__)
#define DARKRADIANT_DLLEXPORT __attribute__((visibility("default")))
#else
#define DARKRADIANT_DLLEXPORT
#endif

0 comments on commit 7afcf3c

Please sign in to comment.