1
#ifdef Q_OS_WIN const char * const eol = "\r\n"; #else const char *eol = "\n"; #endif
Qt宏判断操作系统
原文:http://my.oschina.net/jannn/blog/493472