Skip to content

Commit

Permalink
GCC-13 support, when precompiled headers are off
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru authored and coelckers committed Feb 5, 2024
1 parent 97cfd32 commit b5eb8f4
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/common/engine/palettecontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
**
*/

#include <cmath>
#include "palutil.h"
#include "sc_man.h"
#include "m_crc32.h"
Expand Down
1 change: 1 addition & 0 deletions src/common/objects/autosegs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
** compile with something other than Visual C++ or GCC.
*/

#include <cassert>
#include "autosegs.h"

#ifdef _WIN32
Expand Down
1 change: 1 addition & 0 deletions src/common/objects/autosegs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#define AUTOSEGS_H

#include <type_traits>
#include <cstdint>

#if defined(__clang__)
#if defined(__has_feature) && __has_feature(address_sanitizer)
Expand Down
1 change: 1 addition & 0 deletions src/common/textures/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#ifndef __BITMAP_H__
#define __BITMAP_H__

#include <cstring>
#include "palentry.h"

struct FCopyInfo;
Expand Down
2 changes: 2 additions & 0 deletions src/common/thirdparty/md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#ifndef MD5_H
#define MD5_H

#include <cstdint>

struct MD5Context
{
MD5Context() { Init(); }
Expand Down
3 changes: 2 additions & 1 deletion src/common/utility/engineerrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@

bool gameisdead;

#ifdef _WIN32
#include <cstdarg>

#ifdef _WIN32
#include <windows.h>
#include "zstring.h"
void I_DebugPrint(const char *cp)
Expand Down
2 changes: 2 additions & 0 deletions src/common/utility/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
*/

#include <algorithm>
#include <cfloat>
#include <cmath>
#include "palutil.h"
#include "palentry.h"
#include "sc_man.h"
Expand Down
1 change: 1 addition & 0 deletions src/common/utility/writezip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "files.h"
#include "m_swap.h"
#include "w_zip.h"
#include "fs_decompress.h"

using FileSys::FCompressedBuffer;

Expand Down
1 change: 1 addition & 0 deletions src/common/widgets/netstartwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/launcher/settingspage.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <zwidget/core/widget.h>
#include "gstrings.h"

#define RENDER_BACKENDS

Expand Down

0 comments on commit b5eb8f4

Please sign in to comment.