This website works better with JavaScript.
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
build: fix compilation on Windows by undefining the min and max macros
that WinDef.h insists on shoving down our throats.
legacy
Sam Hocevar
sam
12 年之前
父節點
ade0514b15
當前提交
1bc2a7d705
共有
4 個文件被更改
,包括
19 次插入
和
5 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/lol/math/half.h
+7
-3
src/lol/math/real.h
+4
-0
src/lol/math/vector.h
+4
-2
win32/lolcore.vcxproj.filters
+ 4
- 0
src/lol/math/half.h
查看文件
@@ -22,6 +22,10 @@
namespace lol
{
/* This is OUR namespace. Don't let Windows headers fuck with it. */
#undef min
#undef max
class half
{
public:
+ 7
- 3
src/lol/math/real.h
查看文件
@@ -18,12 +18,16 @@
#include <stdint.h>
/* Avoid issues with NaCl headers */
#undef log2
namespace lol
{
/* This is OUR namespace. Don't let Windows headers fuck with it. */
#undef min
#undef max
/* Avoid issues with NaCl headers */
#undef log2
/*
* The base class for reals. The only real reason for making this a template
* class is so we can have implicit constructors ("real x = 1" works) but
+ 4
- 0
src/lol/math/vector.h
查看文件
@@ -28,6 +28,10 @@
namespace lol
{
/* This is OUR namespace. Don't let Windows headers fuck with it. */
#undef min
#undef max
/* Some compilers do not support const members in anonymous unions. So
* far, GCC (>= 4.6), CLang (3.0) and Visual Studio (>= 2010) appear to
* work properly. */
+ 4
- 2
win32/lolcore.vcxproj.filters
查看文件
@@ -363,12 +363,14 @@
<ClInclude Include="..\src\platform\xbox\xboxapp.h">
<Filter>src\platform\xbox</Filter>
</ClInclude>
<ClInclude Include="..\src\lol\debug.h" />
<ClInclude Include="..\src\gpu\indexbuffer.h">
<Filter>src\gpu</Filter>
</ClInclude>
<ClInclude Include="..\src\array.h">
<Filter>src</Filter>
</ClInclude>
<ClInclude Include="..\src\lol\debug.h">
<Filter>src\lol</Filter>
</ClInclude>
</ItemGroup>
</Project>
</Project>
Write
Preview
Loading…
取消
儲存