]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
marcan's patch until he gets commit access. Remove C library's includes from the...
[proxmark3-svn] / armsrc / appmain.c
index b231cae1e27b1623eb734b886aed489efe5986e7..b517fa6cd36c5fe401d02371bf4018cf2ff03fe1 100644 (file)
@@ -6,7 +6,6 @@
 //-----------------------------------------------------------------------------\r
 \r
 #include <proxmark3.h>\r
 //-----------------------------------------------------------------------------\r
 \r
 #include <proxmark3.h>\r
-#include <stdlib.h>\r
 #include "apps.h"\r
 #include "legicrf.h"\r
 #ifdef WITH_LCD\r
 #include "apps.h"\r
 #include "legicrf.h"\r
 #ifdef WITH_LCD\r
@@ -20,6 +19,9 @@
 #define va_end __builtin_va_end\r
 int kvsprintf(char const *fmt, void *arg, int radix, va_list ap);\r
        \r
 #define va_end __builtin_va_end\r
 int kvsprintf(char const *fmt, void *arg, int radix, va_list ap);\r
        \r
+\r
+#define abs(x) ( ((x)<0) ? -(x) : (x) )\r
+\r
 //=============================================================================\r
 // A buffer where we can queue things up to be sent through the FPGA, for\r
 // any purpose (fake tag, as reader, whatever). We go MSB first, since that\r
 //=============================================================================\r
 // A buffer where we can queue things up to be sent through the FPGA, for\r
 // any purpose (fake tag, as reader, whatever). We go MSB first, since that\r
Impressum, Datenschutz