fixed win32 bug caused by previous commit. The <sys/stat.h> has to be included above "types.h", or else the "#define stat _stat" fails

This commit is contained in:
ansstuff 2013-04-13 13:05:22 +00:00
parent bc8a01178d
commit 466798309c
1 changed files with 8 additions and 9 deletions

View File

@ -18,6 +18,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <cstdio>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cstdarg>
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream>
#include "types.h"
#include "file.h"
@ -37,15 +45,6 @@
#include "driver.h"
#include "utils/xstring.h"
#include <cstdio>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cstdarg>
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream>
#ifndef WIN32
#include <zlib.h>
#endif