Browse code

* Fixes for gcc and clang (while they can compile the code, the DLLs made aren't functional, but oh well).

* [2SF] Used more up-to-date asmjit, despite the ugly looking code.

Naram Qashat authored on 2014/09/17 19:51:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+// [AsmJit]
2
+// Complete x86/x64 JIT and Remote Assembler for C++.
3
+//
4
+// [License]
5
+// Zlib - See LICENSE.md file in the package.
6
+
7
+// ============================================================================
8
+// [MSVC]
9
+// ============================================================================
10
+
11
+#ifdef _MSC_VER
12
+// Pop disabled warnings by ApiBegin.h
13
+# pragma warning(pop)
14
+// Rename symbols back.
15
+# ifdef ASMJIT_DEFINED_VSNPRINTF
16
+#  undef ASMJIT_DEFINED_VSNPRINTF
17
+#  undef vsnprintf
18
+# endif // ASMJIT_DEFINED_VSNPRINTF
19
+# ifdef ASMJIT_DEFINED_SNPRINTF
20
+#  undef ASMJIT_DEFINED_SNPRINTF
21
+#  undef snprintf
22
+# endif // ASMJIT_DEFINED_SNPRINTF
23
+#endif // _MSC_VER
24
+
25
+// ============================================================================
26
+// [GNUC]
27
+// ============================================================================
28
+
29
+#if defined(__GNUC__) && !defined(__clang__)
30
+# if __GNUC__ >= 4 && !defined(__MINGW32__)
31
+#  pragma GCC visibility pop
32
+# endif // __GNUC__ >= 4
33
+#endif // __GNUC__