vanity-convert: add Makefile
[hackover2013-badge-firmware.git] / sysdefs.h
index 9b786b4..4f2ebb0 100644 (file)
--- a/sysdefs.h
+++ b/sysdefs.h
 #include <stdint.h>
 #include <stdbool.h>
 
+#ifndef ASM
+#  define ASM __asm volatile
+#endif
+
+#ifndef INLINE
+# if __GNUC__ && !__GNUC_STDC_INLINE__
+#  define INLINE extern inline
+# else
+#  define INLINE inline
+# endif
+#endif
+
+// GCC does not inline any functions when not optimizing unless you specify
+// the 'always_inline' attribute for the function
+#ifndef INLINE_POST
+#  define INLINE_POST __attribute__((always_inline))
+#endif
+
 // Stay compatible with ugly "windows" style
 #define BOOL bool
 
This page took 0.028123 seconds and 4 git commands to generate.