<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/bb229684b4a36766f0a15e8cffab0a4ffbe91f9a">https://github.com/macports/macports-legacy-support/commit/bb229684b4a36766f0a15e8cffab0a4ffbe91f9a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bb229684b4a36766f0a15e8cffab0a4ffbe91f9a
</span>Author: Christian Cornelssen <ccorn@1tein.de>
AuthorDate: Wed Feb 13 01:31:18 2019 +0100
<span style='display:block; white-space:pre;color:#404040;'> Use `__asm` instead of `asm` to support compiler flags like `-ansi`
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> ... or `-std=c99` which do not accept the non-standard keyword `asm`.
</span>---
include/MacportsLegacyWrappers/wrapper_macros.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/MacportsLegacyWrappers/wrapper_macros.h b/include/MacportsLegacyWrappers/wrapper_macros.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 919436b..981bb5a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/MacportsLegacyWrappers/wrapper_macros.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/MacportsLegacyWrappers/wrapper_macros.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,7 +18,7 @@
</span> #ifndef _MACPORTS_LEGACYSUPPORTWRAP_H_
#define _MACPORTS_LEGACYSUPPORTWRAP_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* We need support for asm */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* We need support for __asm */
</span> #if !__GNUC__ && !__clang__
#undef __DISABLE_MP_LEGACY_SUPPORT_FUNCTION_WRAPPING__
#define __DISABLE_MP_LEGACY_SUPPORT_FUNCTION_WRAPPING__ 1
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,11 +26,12 @@
</span>
#if !__DISABLE_MP_LEGACY_SUPPORT_FUNCTION_WRAPPING__
/* Could include Darwin's <sys/cdefs.h> and use __STRING, __CONCAT */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* But for wrappers we require asm, thus GCC/Clang, thus ANSI C, anyway */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* But for wrappers we require __asm, thus GCC/Clang, thus ANSI C, anyway */
</span>
/* Wrapper support macros */
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Use __asm instead of asm, as the latter is not recognized with e.g. -ansi */
</span> #define __MP_LEGACY_WRAPPER(sym) macports_legacy_##sym
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MP_LEGACY_WRAPPER_ALIAS(sym) asm("_macports_legacy_" #sym)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define __MP_LEGACY_WRAPPER_ALIAS(sym) __asm("_macports_legacy_" #sym)
</span>
#endif /* !__DISABLE_MP_LEGACY_SUPPORT_FUNCTION_WRAPPING__ */
#endif /* _MACPORTS_LEGACYSUPPORTWRAP_H_ */
</pre><pre style='margin:0'>
</pre>