GCC-13 support, when precompiled headers are off

This commit is contained in:
Ștefan Talpalaru 2024-02-05 02:06:28 +01:00 committed by Christoph Oelckers
parent 97cfd32677
commit b5eb8f47db
11 changed files with 14 additions and 2 deletions

View file

@ -44,7 +44,7 @@ jobs:
- name: Linux GCC 12
os: ubuntu-22.04
extra_options: -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12
extra_options: -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
deps_cmdline: sudo apt update && sudo apt install libsdl2-dev libvpx-dev libgtk-3-dev libwebp-dev
build_type: MinSizeRel

View file

@ -32,6 +32,7 @@
**
*/
#include <cmath>
#include "palutil.h"
#include "sc_man.h"
#include "m_crc32.h"

View file

@ -42,6 +42,7 @@
** compile with something other than Visual C++ or GCC.
*/
#include <cassert>
#include "autosegs.h"
#ifdef _WIN32

View file

@ -36,6 +36,7 @@
#define AUTOSEGS_H
#include <type_traits>
#include <cstdint>
#if defined(__clang__)
#if defined(__has_feature) && __has_feature(address_sanitizer)

View file

@ -36,6 +36,7 @@
#ifndef __BITMAP_H__
#define __BITMAP_H__
#include <cstring>
#include "palentry.h"
struct FCopyInfo;

View file

@ -18,6 +18,8 @@
#ifndef MD5_H
#define MD5_H
#include <cstdint>
struct MD5Context
{
MD5Context() { Init(); }

View file

@ -35,8 +35,9 @@
bool gameisdead;
#ifdef _WIN32
#include <cstdarg>
#ifdef _WIN32
#include <windows.h>
#include "zstring.h"
void I_DebugPrint(const char *cp)

View file

@ -33,6 +33,8 @@
*/
#include <algorithm>
#include <cfloat>
#include <cmath>
#include "palutil.h"
#include "palentry.h"
#include "sc_man.h"

View file

@ -39,6 +39,7 @@
#include "files.h"
#include "m_swap.h"
#include "w_zip.h"
#include "fs_decompress.h"
using FileSys::FCompressedBuffer;

View file

@ -2,6 +2,7 @@
#include "netstartwindow.h"
#include "version.h"
#include "engineerrors.h"
#include "gstrings.h"
#include <zwidget/core/timer.h>
#include <zwidget/widgets/textlabel/textlabel.h>
#include <zwidget/widgets/pushbutton/pushbutton.h>

View file

@ -1,6 +1,7 @@
#pragma once
#include <zwidget/core/widget.h>
#include "gstrings.h"
#define RENDER_BACKENDS