Fixing compiler warnings:

* BLI_arithb.h - isnan definition is only needed for MSVC, but gcc/mingw complains about it

* file-selectors - moved BLI_storage_types.h or sys/stat.h includes before BLI_winstuff.h includes,  to silence warnings about S_ISDIR.
This commit is contained in:
Joshua Leung
2007-12-10 23:25:21 +00:00
parent be354c3d09
commit dbb13c07cc
3 changed files with 11 additions and 8 deletions

View File

@@ -55,7 +55,9 @@ extern "C" {
#endif
#ifdef WIN32
#define isnan(n) _isnan(n)
#ifndef FREE_WINDOWS
#define isnan(n) _isnan(n)
#endif
#endif
#define MAT4_UNITY {{ 1.0, 0.0, 0.0, 0.0},\

View File

@@ -51,10 +51,11 @@
#include "DNA_material_types.h"
#include "BLI_blenlib.h"
#include "BLI_storage_types.h"
#ifdef WIN32
#include "BLI_winstuff.h"
#endif
#include "BLI_storage_types.h"
#include "BKE_global.h"
#include "BKE_library.h"

View File

@@ -34,6 +34,12 @@
#include <string.h>
#include <math.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "MEM_guardedalloc.h"
#include "BMF_Api.h"
#ifdef WIN32
#include <io.h>
#include <direct.h>
@@ -43,12 +49,6 @@
#include <sys/times.h>
#endif
#include <sys/stat.h>
#include <sys/types.h>
#include "MEM_guardedalloc.h"
#include "BMF_Api.h"
#include "BLI_blenlib.h"
#include "BLI_arithb.h"
#include "BLI_linklist.h"