From a6e25132d4de0f43fcbceae8a5c49cdc3bf91dad Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 12 Jun 2006 20:35:59 +0000 Subject: [PATCH] Forcefully turn off GPROF in this file if it is enabled as GPROF's attempt to use a macro for 'ret' doesn't play well with the wrappers trying to implement 'Pascal-style' calling conventions. --- sys/compat/ndis/winx32_wrap.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/ndis/winx32_wrap.S b/sys/compat/ndis/winx32_wrap.S index 9a6b3cdf580..065d409f0b5 100644 --- a/sys/compat/ndis/winx32_wrap.S +++ b/sys/compat/ndis/winx32_wrap.S @@ -32,6 +32,11 @@ * $FreeBSD$ */ +/* The 'ret' macro doesn't work in this file if GPROF is enabled. */ +#ifdef GPROF +#undef GPROF +#endif + #include /*