X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/28fdb04fd8d62e46c36f959b373d662f1a146448..d3f8d76d6c157e7ffc8cf03536f73c30fe2ab561:/include/common.h diff --git a/include/common.h b/include/common.h index ba286377..89a6cd7e 100644 --- a/include/common.h +++ b/include/common.h @@ -9,16 +9,21 @@ // Interlib Definitions //----------------------------------------------------------------------------- -#ifndef __COMMON_H -#define __COMMON_H +#ifndef COMMON_H__ +#define COMMON_H__ -#include -#include -#include -#include typedef unsigned char byte_t; -#define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif +#ifndef ABS +# define ABS(a) (((a) < 0) ? -(a) : (a)) +#endif + +#define RAMFUNC __attribute((long_call, section(".ramfunc"))) #endif