浏览代码

Use <stdint.h> instead of <cstdint>.

This is because <cstdint> is not guaranteed to expose C99 types to the
global namespace, and we don’t want to go through the hassle of using
each of them one by one.
wip/core-clipp
Sam Hocevar 5 年前
父节点
当前提交
38ee6b26e9
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. +4
    -4
      include/lol/math/real.h
  2. +2
    -2
      legacy/lol/math/bigint.h
  3. +2
    -2
      legacy/lol/math/geometry.h

+ 4
- 4
include/lol/math/real.h 查看文件

@@ -19,10 +19,10 @@


#include "../base/private/features.h" #include "../base/private/features.h"


#include <limits> // std::numeric_limits
#include <vector> // std::vector
#include <string> // std::string
#include <cstdint> // int64_t etc.
#include <limits> // std::numeric_limits
#include <vector> // std::vector
#include <string> // std::string
#include <stdint.h> // int64_t etc.


#if _MSC_VER #if _MSC_VER
# pragma push_macro("min") # pragma push_macro("min")


+ 2
- 2
legacy/lol/math/bigint.h 查看文件

@@ -1,7 +1,7 @@
// //
// Lol Engine // Lol Engine
// //
// Copyright © 2010—2015 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it // the extent permitted by applicable law. You can redistribute it
@@ -20,7 +20,7 @@
#include <lol/base/types.h> #include <lol/base/types.h>


#include <array> #include <array>
#include <cstdint>
#include <stdint.h>


namespace lol namespace lol
{ {


+ 2
- 2
legacy/lol/math/geometry.h 查看文件

@@ -1,7 +1,7 @@
// //
// Lol Engine // Lol Engine
// //
// Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// © 2010—2015 Benjamin “Touky” Huet <huet.benjamin@gmail.com> // © 2010—2015 Benjamin “Touky” Huet <huet.benjamin@gmail.com>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
@@ -24,7 +24,7 @@
#include <map> #include <map>
#include <cmath> #include <cmath>
#include <cstdio> #include <cstdio>
#include <cstdint>
#include <stdint.h>


namespace lol namespace lol
{ {


正在加载...
取消
保存