Skip to content

Commit

Permalink
Update mingw-compat, fix build with newer mingw
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 5, 2023
1 parent 5ce32a4 commit 930ebef
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mingw-compat/condition_variable
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <condition_variable>

#if __GNUC__ < 12
#include "mingw.condition_variable.h"
#endif
3 changes: 3 additions & 0 deletions mingw-compat/future
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <future>

#if __GNUC__ < 12
#include "mingw.future.h"
#endif
3 changes: 3 additions & 0 deletions mingw-compat/invoke
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <invoke>

#if __GNUC__ < 12
#include "mingw.invoke.h"
#endif
9 changes: 9 additions & 0 deletions mingw-compat/latch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2023 Filipe Coelho <falktx@falktx.com>
// SPDX-License-Identifier: 0BSD OR ISC

#pragma once
#include_next <latch>

#if __GNUC__ < 12
#include "mingw.latch.h"
#endif
3 changes: 3 additions & 0 deletions mingw-compat/mutex
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <mutex>

#if __GNUC__ < 12
#include "mingw.mutex.h"
#endif
3 changes: 3 additions & 0 deletions mingw-compat/shared_mutex
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <shared_mutex>

#if __GNUC__ < 12
#include "mingw.shared_mutex.h"
#endif
3 changes: 3 additions & 0 deletions mingw-compat/thread
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

#pragma once
#include_next <thread>

#if __GNUC__ < 12
#include "mingw.thread.h"
#endif
2 changes: 1 addition & 1 deletion setup/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ LIBSNDFILE_URL=https://github.com/libsndfile/libsndfile/releases/download/${LIBS
LIBSAMPLERATE_VERSION=0.1.9
LIBSAMPLERATE_URL=http://www.mega-nerd.com/SRC

MINGW_STD_THREADS_VERSION=6c2061b7da41d6aa1b2162ff4383ec3ece864bc6
MINGW_STD_THREADS_VERSION=c931bac289dd431f1dd30fc4a5d1a7be36668073
MINGW_STD_THREADS_URL=https://github.com/meganz/mingw-std-threads.git

ZLIB_VERSION=cacf7f1d4e3d44d871b605da3b647f07d718623f # 1.2.11
Expand Down

0 comments on commit 930ebef

Please sign in to comment.