Browse Source

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 4 years ago
parent
commit
38ee6b26e9
3 changed files with 8 additions and 8 deletions
  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 View File

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

#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
# pragma push_macro("min")


+ 2
- 2
legacy/lol/math/bigint.h View File

@@ -1,7 +1,7 @@
//
// 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
// the extent permitted by applicable law. You can redistribute it
@@ -20,7 +20,7 @@
#include <lol/base/types.h>

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

namespace lol
{


+ 2
- 2
legacy/lol/math/geometry.h View File

@@ -1,7 +1,7 @@
//
// 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>
//
// Lol Engine is free software. It comes without any warranty, to
@@ -24,7 +24,7 @@
#include <map>
#include <cmath>
#include <cstdio>
#include <cstdint>
#include <stdint.h>

namespace lol
{


Loading…
Cancel
Save