summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index e3539f6..a85bc57 100644
--- a/common.h
+++ b/common.h
@@ -31,6 +31,12 @@
#define PATH_SEPARATOR_CHAR '/'
#endif
+#ifdef X86_ARCH
+ #define function_cc __attribute__((regparm(2)))
+#else
+ #define function_cc
+#endif
+
#ifdef ARM_ARCH
#define _BSD_SOURCE // sync