Skip to content

Commit

Permalink
more MinGW work. Can't include mingw32\i686-w64-mingw32\include\float.h
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed May 29, 2018
1 parent 46dc5e1 commit 9c80b2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/LocatorAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class XRCORE_API CLocatorAPI : Noncopyable
using files_set = xr_set<file, file_pred>;
using files_it = files_set::iterator;

using FFVec = xr_vector<_finddata64i32_t>;
using FFVec = xr_vector<_finddata_t>;
FFVec rec_files;

int m_iLockRescan;
Expand Down
10 changes: 10 additions & 0 deletions src/xrCore/_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
#if defined(WINDOWS)
#include <intrin.h> // __rdtsc
#include <process.h>

#if defined(_MSC_VER)
#include <powerbase.h>
#elif defined(__GNUC__)
#include <float.h> // _controlfp
//#include_next <float.h>
//how to include mingw32\i686-w64-mingw32\include\float.h
//instead of mingw32\lib\gcc\i686-w64-mingw32\7.3.0\include\float.h
//?
#endif

#elif defined(LINUX)
#include <x86intrin.h> // __rdtsc
#include <fpu_control.h>
Expand Down

0 comments on commit 9c80b2e

Please sign in to comment.