libftdi: (tomj) readded do/while statement for compiler compatibility
authorThomas Jarosch <opensource@intra2net.com>
Mon, 29 Nov 2004 17:21:49 +0000 (17:21 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Mon, 29 Nov 2004 17:21:49 +0000 (17:21 +0000)
src/ftdi.c

index ae8dde8..1ee86eb 100644 (file)
 
 #include "ftdi.h"
 
-#define ftdi_error_return(code, str) {  \
-       ftdi->error_str = str;          \
-        return code;                    \
-   }                  
+#define ftdi_error_return(code, str) do {  \
+       ftdi->error_str = str;             \
+        return code;                       \
+   } while(0);                 
 
 
 /* ftdi_init return codes: