summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Modules/_lsprof.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-21 00:42:08 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-21 00:42:08 +0000
commite7d3e20912baa82965108997013710223152772c (patch)
tree02d4ed8e367319884582025cb1da2f4c45a05190 /sys/src/cmd/python/Modules/_lsprof.c
parent9adf75a7091c7bd2afefbeba62a2525d50df4404 (diff)
remove keyboard stuff from other ports, make openssl and python compile on arm
Diffstat (limited to 'sys/src/cmd/python/Modules/_lsprof.c')
-rw-r--r--sys/src/cmd/python/Modules/_lsprof.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/src/cmd/python/Modules/_lsprof.c b/sys/src/cmd/python/Modules/_lsprof.c
index d35c894c5..962349829 100644
--- a/sys/src/cmd/python/Modules/_lsprof.c
+++ b/sys/src/cmd/python/Modules/_lsprof.c
@@ -156,9 +156,13 @@ static PY_LONG_LONG CallExternalTimer(ProfilerObject *pObj)
return result;
}
-#define CALL_TIMER(pObj) ((pObj)->externalTimer ? \
- CallExternalTimer(pObj) : \
- hpTimer())
+static PY_LONG_LONG
+CALL_TIMER(ProfilerObject *pObj)
+{
+ if(pObj->externalTimer)
+ return CallExternalTimer(pObj);
+ return hpTimer();
+}
/*** ProfilerObject ***/