Skip to content

Commit

Permalink
Fix building LTO binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kivilinna <[email protected]>
  • Loading branch information
jkivilin committed Feb 11, 2018
1 parent 2c6c1f4 commit 36b0aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metamod/osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
// DLL.
#undef DLLEXPORT
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#define DLLEXPORT __declspec(dllexport) __attribute__ ((externally_visible))
// WINAPI should be provided in the windows compiler headers.
// It's usually defined to something like "__stdcall".
#elif defined(linux)
#define DLLEXPORT __attribute__ ((visibility ("default")))
#define DLLEXPORT __attribute__ ((visibility ("default"), externally_visible))
#define WINAPI /* */
#endif /* linux */

Expand Down

0 comments on commit 36b0aa4

Please sign in to comment.