Skip to content

Commit 5037b4b

Browse files
committed
xrCDB,xrCore: fix win build
1 parent d6c3543 commit 5037b4b

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

src/xrCDB/ISpatial_q_ray.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "ISpatial.h"
33
#include "xrCore/_fbox.h"
44
#include "xrCore/Threading/Lock.hpp"
5+
#include "SDL.h"
56
#pragma warning(push)
67
#pragma warning(disable : 4995)
78
#include <xmmintrin.h>

src/xrCDB/xrCDB_ray.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#pragma warning(pop)
88

99
#include "xrCDB.h"
10+
#include "SDL.h"
1011

1112
using namespace CDB;
1213
using namespace Opcode;

src/xrCore/_math.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
#include <sys/time.h>
2424
#include <sys/resource.h>
2525
#include <chrono>
26-
#include <thread>
2726
#endif
27+
#include <thread>
28+
#include "SDL.h"
2829

2930
typedef struct _PROCESSOR_POWER_INFORMATION
3031
{

src/xrCore/xrCore.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "Threading/ThreadPool.hpp"
1212
#include "Math/MathUtil.hpp"
1313
#include "xrCore/_std_extensions.h"
14+
#include "SDL.h"
1415

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

src/xrCore/xrstring.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ IC void xr_strlwr(shared_str& src)
206206
int i = 0;
207207
while(lp[i])
208208
{
209-
lp[i] = (char) std::toupper(lp[i], std::locale());
209+
lp[i] = (char) std::tolower(lp[i], std::locale());
210210
i++;
211211
}
212212
#endif
@@ -220,7 +220,7 @@ IC char * xr_strlwr(char * src)
220220
int i = 0;
221221
while(src[i])
222222
{
223-
src[i] = (char) toupper(src[i]);// TODO rewrite locale-independent toupper_l()
223+
src[i] = (char) tolower(src[i]);// TODO rewrite locale-independent toupper_l()
224224
i++;
225225
}
226226
return src;

0 commit comments

Comments
 (0)