Turns out cstdint is c++11, so enabled c++11 on sourcesdk project.
This commit is contained in:
parent
d8b3b56822
commit
b46d7cae95
@ -7,16 +7,16 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
|
|
||||||
typedef std::uint64_t uint64;
|
using uint64 = std::uint64_t;
|
||||||
typedef std::uint32_t uint32;
|
using uint32 = std::uint32_t;
|
||||||
typedef std::uint16_t uint16;
|
using uint16 = std::uint16_t;
|
||||||
typedef std::uint8_t uint8;
|
using uint8 = std::uint8_t;
|
||||||
typedef std::int64_t int64;
|
using int64 = std::int64_t;
|
||||||
typedef std::int32_t int32;
|
using int32 = std::int32_t;
|
||||||
typedef std::int16_t int16;
|
using int16 = std::int16_t;
|
||||||
typedef std::int8_t int8;
|
using int8 = std::int8_t;
|
||||||
typedef unsigned int uint;
|
using uint = unsigned int;
|
||||||
typedef char byte;
|
using byte = char;
|
||||||
|
|
||||||
#if defined(_M_IX86)
|
#if defined(_M_IX86)
|
||||||
#define __i386__ 1
|
#define __i386__ 1
|
||||||
|
@ -20,7 +20,6 @@ solution "demboyz"
|
|||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
configuration "gmake"
|
configuration "gmake"
|
||||||
-- Enables C++11 support.
|
|
||||||
buildoptions { "-std=c++11" }
|
buildoptions { "-std=c++11" }
|
||||||
configuration {}
|
configuration {}
|
||||||
files
|
files
|
||||||
|
@ -7,7 +7,9 @@ group "external"
|
|||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
language "C++"
|
language "C++"
|
||||||
location (_ACTION .. "/" .. project().name)
|
location (_ACTION .. "/" .. project().name)
|
||||||
|
configuration "gmake"
|
||||||
|
buildoptions { "-std=c++11" }
|
||||||
|
configuration {}
|
||||||
includedirs
|
includedirs
|
||||||
{
|
{
|
||||||
base_dir .. "include/",
|
base_dir .. "include/",
|
||||||
|
Loading…
Reference in New Issue
Block a user