我把Tiny6410 装成linux系统,
使用虚拟机(Fedora9)交叉编译程序,编程程序使用QT4.7;
现在的情况是:
1、我有一套代码,现在可以编译通过在ARM板上运行, 现在我需要把这一套代码 运行到linux系统上,但是因为代码中有一些库包是掉用的ARM板上的,所以在linux版本中需要注释掉,我想通过宏命令来解决这个问题;求帮忙;
代码如下,我想在编译ARM版本的时候,这部分代码自动编译,在编译LINUX版本的时候,这部分代码自动不编译;
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <errno.h>
#include <string.h>
#include <termio.h>