X-Git-Url: https://git.sur5r.net/?p=armstart-ibdap;a=blobdiff_plain;f=inc%2Fcompiler.h;fp=inc%2Fcompiler.h;h=ed43a4bbbb3cd6ef5edd985de77bda98bb7eb8c1;hp=0000000000000000000000000000000000000000;hb=8dc27fcbb690f5a27358b78782f7d217253b5235;hpb=7cdc866d982b6bb662fa3b2eceb621f5369267d2;ds=sidebyside diff --git a/inc/compiler.h b/inc/compiler.h new file mode 100644 index 0000000..ed43a4b --- /dev/null +++ b/inc/compiler.h @@ -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_ */