aboutsummaryrefslogtreecommitdiff
path: root/games/ags
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2017-08-03 15:17:53 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2017-08-03 15:17:53 +0000
commit07080ff60a181fdd19cc46c64110dad33157b0cf (patch)
tree91bde414036ed4c74e3508f018372d924e9f37d6 /games/ags
parent75b95bc66c5e32e1fd64751002a84955f0c14e7f (diff)
downloadports-07080ff60a181fdd19cc46c64110dad33157b0cf.tar.gz
ports-07080ff60a181fdd19cc46c64110dad33157b0cf.zip
Notes
Diffstat (limited to 'games/ags')
-rw-r--r--games/ags/files/patch-Common_debug_assert.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/games/ags/files/patch-Common_debug_assert.h b/games/ags/files/patch-Common_debug_assert.h
new file mode 100644
index 000000000000..1129fefbfcca
--- /dev/null
+++ b/games/ags/files/patch-Common_debug_assert.h
@@ -0,0 +1,34 @@
+--- Common/debug/assert.h.orig 2017-08-03 13:21:09 UTC
++++ Common/debug/assert.h
+@@ -18,31 +18,6 @@
+ #ifndef __AGS_CN_DEBUG__ASSERT_H
+ #define __AGS_CN_DEBUG__ASSERT_H
+
+-#ifdef _DEBUG
+-
+-// TODO: revise this later (add platform-specific output maybe?)
+-#if defined(WINDOWS_VERSION)
+-
+-inline void assert(bool expr)
+-{
+- if (!expr) {
+- _asm {
+- int 3
+- }
+- }
+-}
+-
+-#else // !WINDOWS_VERSION
+-
+ #include <assert.h>
+-
+-#endif
+-
+-#else // !_DEBUG
+-
+-// JJS: GCC has trouble with macro overloading
+-inline void assert(bool expr) {}
+-
+-#endif // !_DEBUG
+
+ #endif // __AGS_CN_DEBUG__ASSERT_H