MinGW: Remove direct mingw-std-threads includes

This commit is contained in:
Jonathan G Rennison
2023-12-13 21:08:13 +00:00
parent ba7d2c92d2
commit ea3b991f72
25 changed files with 0 additions and 90 deletions

View File

@@ -18,9 +18,6 @@
#include "thread.h"
#include <array>
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#if defined(_WIN32)
#include "os/windows/win32.h"

View File

@@ -28,9 +28,6 @@
#include <atomic>
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include <vector>
#include "safeguards.h"

View File

@@ -12,9 +12,6 @@
#include "company_type.h"
#include <thread>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.thread.h"
#endif
/** Constants related to world generation */
enum LandscapeGenerator {

View File

@@ -19,9 +19,6 @@
#include "safeguards.h"
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
struct MixerChannel {
/* pointer to allocated buffer memory */

View File

@@ -26,9 +26,6 @@
#include <dmksctrl.h>
#include <dmusicc.h>
#include <mutex>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include "../safeguards.h"

View File

@@ -16,9 +16,6 @@
#include <fluidsynth.h>
#include "../mixer.h"
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
static struct {
fluid_settings_t *settings; ///< FluidSynth settings handle

View File

@@ -14,9 +14,6 @@
#include <memory>
#include <mutex>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
extern std::mutex _music_driver_mutex;

View File

@@ -19,10 +19,6 @@
#include "../base_media_base.h"
#include "../core/mem_func.hpp"
#include <mutex>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "../safeguards.h"

View File

@@ -20,9 +20,6 @@
#include "os_abstraction.h"
#include "../../string_func.h"
#include <mutex>
#if defined(__MINGW32__)
#include "../../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include "../../safeguards.h"

View File

@@ -22,9 +22,6 @@
#include <memory>
#include <vector>
#include <thread>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.thread.h"
#endif
/** The states of sending the packets. */
enum SendPacketsState {

View File

@@ -34,10 +34,6 @@
#include "../3rdparty/monocypher/monocypher.h"
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "../safeguards.h"

View File

@@ -12,10 +12,6 @@
#include <condition_variable>
#include <mutex>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include "core/http.h"
/**

View File

@@ -30,10 +30,6 @@
#include "thread.h"
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#include "3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "safeguards.h"

View File

@@ -101,9 +101,6 @@
#include <atomic>
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include <stdarg.h>
#include <system_error>

View File

@@ -15,10 +15,6 @@
#include <thread>
#include <windows.h>
#if defined(__MINGW32__)
#include "../../3rdparty/mingw-std-threads/mingw.thread.h"
#endif
#include "../../safeguards.h"
extern std::string SurveyMemoryToText(uint64_t memory);

View File

@@ -34,10 +34,6 @@
#include <array>
#include <map>
#include <mutex>
#if defined(__MINGW32__)
#include "../../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include "../../safeguards.h"

View File

@@ -66,10 +66,6 @@
#include "../thread.h"
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "../safeguards.h"

View File

@@ -15,10 +15,6 @@
#include <system_error>
#include <thread>
#include <mutex>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.thread.h"
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
/**
* Sleep on the current thread for a defined time.

View File

@@ -26,10 +26,6 @@
#include <SDL.h>
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#ifdef __EMSCRIPTEN__
# include <emscripten.h>
# include <emscripten/html5.h>

View File

@@ -30,10 +30,6 @@
#include <SDL.h>
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include <GL/gl.h>
#include "../3rdparty/opengl/glext.h"
#include "opengl.h"

View File

@@ -11,9 +11,6 @@
#define VIDEO_SDL_H
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "video_driver.hpp"
#include <vector>

View File

@@ -23,11 +23,6 @@
#include <thread>
#include <vector>
#include <functional>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#include "../3rdparty/mingw-std-threads/mingw.thread.h"
#endif
extern std::string _ini_videodriver;
extern std::vector<Dimension> _resolutions;

View File

@@ -13,10 +13,6 @@
#include "video_driver.hpp"
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "../3rdparty/mingw-std-threads/mingw.mutex.h"
#include "../3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include <vector>
/** Base class for Windows video drivers. */

View File

@@ -125,10 +125,6 @@
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#include "3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
#include "table/strings.h"
#include "table/string_colours.h"

View File

@@ -13,10 +13,6 @@
#include "core/ring_buffer_queue.hpp"
#include <mutex>
#include <condition_variable>
#if defined(__MINGW32__)
#include "3rdparty/mingw-std-threads/mingw.mutex.h"
#include "3rdparty/mingw-std-threads/mingw.condition_variable.h"
#endif
typedef void WorkerJobFunc(void *, void *, void *);