Fix compilation with GCC 13.
gcc-13 less often includes cstdint so one might need to include it manually if needed. The headers already included in Message.h are included within namespace AtlasMessage which didn't break by chance, move them out and add cstdint. Patch by: @sera Reviewed by: @phosit Fixes: #6800 Differential Revision: https://code.wildfiregames.com/D4997 This was SVN commit r27644.
This commit is contained in:
parent
f0b01f0896
commit
8472240573
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2023 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -18,13 +18,15 @@
|
||||
#ifndef INCLUDED_MESSAGES
|
||||
#define INCLUDED_MESSAGES
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Opens namespace AtlasMessage, closes it on second inclusion!
|
||||
#ifndef MESSAGES_SKIP_SETUP
|
||||
#include "MessagesSetup.h"
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
// TODO: organisation, documentation, etc
|
||||
|
||||
#ifdef _MSC_VER // (can't use MSC_VERSION here since this file is included by Atlas too)
|
||||
|
Loading…
Reference in New Issue
Block a user