chiark / gitweb /
[PATCH] volume-id build fix and update
[elogind.git] / klibc / klibc / include / klibc / compiler.h
index 49872b89d4c2484ff4addb0cc5c6acff6c242dcf..6c01474cc1add4c181c7f1910a4d3e8af648fbf5 100644 (file)
@@ -8,12 +8,16 @@
 #define _KLIBC_COMPILER_H
 
 /* Specific calling conventions */
+/* __cdecl is used when we want varadic and non-varadic functions to have
+   the same binary calling convention. */
 #ifdef __i386__
 # ifdef __GNUC__
 #  define __cdecl __attribute__((cdecl,regparm(0)))
 # else
   /* Most other C compilers have __cdecl as a keyword */
 # endif
+#else
+# define __cdecl               /* Meaningless on non-i386 */
 #endif
 
 /* How to declare a function that *must* be inlined */