| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/games/xray_re-tools/files/ |
Upload File : |
--- 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