]> git.sur5r.net Git - armstart-ibdap/blobdiff - inc/compiler.h
initial commit
[armstart-ibdap] / inc / compiler.h
diff --git a/inc/compiler.h b/inc/compiler.h
new file mode 100644 (file)
index 0000000..ed43a4b
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * compiler.h
+ *
+ *  Created on: Jun 18, 2015
+ *      Author: yliu
+ */
+
+#ifndef COMPILER_H_
+#define COMPILER_H_
+
+#if defined ( __GNUC__ )
+#define __ALWAYS_INLINE __attribute__((always_inline))
+#define __forceinline  __ALWAYS_INLINE
+#define __weak                 __attribute__ ((weak))
+#endif
+
+
+
+#endif /* COMPILER_H_ */