dos2unix, smart card app.
[goodfet] / firmware / include / command.h
index 1fe9e42..7e2d83a 100644 (file)
@@ -74,7 +74,12 @@ extern unsigned char silent;
 #define OCT_CMP 0x90
 #define OCT_RES 0x91
 
+#ifdef GCC
 #define WEAKDEF __attribute__ ((weak))
+#else
+//Compiler doesn't support weak linking. :(
+#define WEAKDEF
+#endif
 
 //! Handle a plugin, weak-linked to error.
 extern int pluginhandle(unsigned char app,
@@ -135,3 +140,6 @@ void jtag430x2handle(unsigned char app, unsigned char verb,
 void avrhandle(unsigned char app,
               unsigned char verb,
               unsigned long len);  
+int smartcardhandle(unsigned char app,
+                   unsigned char verb,
+                   unsigned int len);