]> git.sur5r.net Git - cc65/blobdiff - testcode/lib/ft.c
Switched to Markdown in order to allow to add links.
[cc65] / testcode / lib / ft.c
index c887e1c87f1eff8d5c47eb87636094e77f4be823..ff335240dbb50cb57aac98b3995acc72a704f084 100644 (file)
 #include <fcntl.h>
 #include <errno.h>
 #include <conio.h>
+#include <unistd.h>
 
 extern int getsp(void);  /* is provided in getsp.s */
 
-#ifdef __ATARI__  /* Atari's fd indirection table */
+/* Atari's fd indirection table */
+#ifdef __ATARI__
 extern char __fd_index[];
 struct fd_t {
   char usage;
@@ -32,7 +34,7 @@ struct fd_t {
   char flag;
 };
 extern struct fd_t __fd_table[];
-#endif /* #ifdef __ATARI__ */
+#endif
 
 int main(int argc,char **argv)
 {
@@ -82,7 +84,7 @@ int main(int argc,char **argv)
                __fd_table[i].iocb,
                __fd_table[i].dev);
     }
-#endif /* #ifdef __ATARI__ */
+#endif
     lr = read(fd,buf,16);  /* read first 16 bytes */
     csp = getsp();
     if (lr == -1) {