Index: head/games/xray_re-tools/files/patch-sources_utils_converter_opcode_Opcode.h =================================================================== --- head/games/xray_re-tools/files/patch-sources_utils_converter_opcode_Opcode.h (revision 512649) +++ head/games/xray_re-tools/files/patch-sources_utils_converter_opcode_Opcode.h (revision 512650) @@ -1,22 +1,31 @@ --- sources/utils/converter/opcode/Opcode.h.orig 2018-09-02 12:42:44 UTC +++ sources/utils/converter/opcode/Opcode.h +@@ -28,7 +28,7 @@ + #pragma message("Using OPCODE") + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Automatic linking +- #ifndef BAN_OPCODE_AUTOLINK ++ #if defined(_WIN32) && !defined(BAN_OPCODE_AUTOLINK) + #ifdef _DEBUG + #pragma comment(lib, "Opcode_D.lib") + #else @@ -41,9 +41,17 @@ // Preprocessor #ifndef ICE_NO_DLL #ifdef OPCODE_EXPORTS - #define OPCODE_API __declspec(dllexport) + #ifdef __GNUC__ + #define OPCODE_API __attribute__((visibility("default"))) + #else + #define OPCODE_API __declspec(dllexport) + #endif #else - #define OPCODE_API __declspec(dllimport) + #ifdef __GNUC__ + #define OPCODE_API __attribute__((visibility("hidden"))) + #else + #define OPCODE_API __declspec(dllimport) + #endif #endif #else #define OPCODE_API