使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
lolengine
/
lol
镜像自地址
https://github.com/lolengine/lol
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
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 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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>
撰写
预览
正在加载...
取消
保存