Skip to content

Commit

Permalink
xrCDB,xrCore: fix win build
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Aug 2, 2018
1 parent d6c3543 commit 5037b4b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/xrCDB/ISpatial_q_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "ISpatial.h"
#include "xrCore/_fbox.h"
#include "xrCore/Threading/Lock.hpp"
#include "SDL.h"
#pragma warning(push)
#pragma warning(disable : 4995)
#include <xmmintrin.h>
Expand Down
1 change: 1 addition & 0 deletions src/xrCDB/xrCDB_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma warning(pop)

#include "xrCDB.h"
#include "SDL.h"

using namespace CDB;
using namespace Opcode;
Expand Down
3 changes: 2 additions & 1 deletion src/xrCore/_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <chrono>
#include <thread>
#endif
#include <thread>
#include "SDL.h"

typedef struct _PROCESSOR_POWER_INFORMATION
{
Expand Down
1 change: 1 addition & 0 deletions src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "Threading/ThreadPool.hpp"
#include "Math/MathUtil.hpp"
#include "xrCore/_std_extensions.h"
#include "SDL.h"

#pragma comment(lib, "winmm.lib")

Expand Down
4 changes: 2 additions & 2 deletions src/xrCore/xrstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ IC void xr_strlwr(shared_str& src)
int i = 0;
while(lp[i])
{
lp[i] = (char) std::toupper(lp[i], std::locale());
lp[i] = (char) std::tolower(lp[i], std::locale());
i++;
}
#endif
Expand All @@ -220,7 +220,7 @@ IC char * xr_strlwr(char * src)
int i = 0;
while(src[i])
{
src[i] = (char) toupper(src[i]);// TODO rewrite locale-independent toupper_l()
src[i] = (char) tolower(src[i]);// TODO rewrite locale-independent toupper_l()
i++;
}
return src;
Expand Down

0 comments on commit 5037b4b

Please sign in to comment.