mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 18:06:27 -04:00
games/ags: Fix build on CURRENT
../Common/debug/assert.h:44:13: fatal error: expected unqualified-id inline void assert(bool expr) {} ^ /usr/include/assert.h:49:21: note: expanded from macro 'assert' #define assert(e) ((void)0) ^ Reported by: pkg-fallout
This commit is contained in:
parent
75b95bc66c
commit
07080ff60a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447226
1 changed files with 34 additions and 0 deletions
34
games/ags/files/patch-Common_debug_assert.h
Normal file
34
games/ags/files/patch-Common_debug_assert.h
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue