Commit Graph

5318 Commits

Author SHA1 Message Date
Chris Robinson 5d092a1c58 Use the appropriate enums for standard atomics 2018-11-01 08:43:31 -07:00
Chris Robinson d28c0eb556 Avoid uniform initialization with references
Also doesn't work with GCC 4.x
2018-11-01 08:41:23 -07:00
Chris Robinson 48f877e859 Remove unused header 2018-11-01 08:19:51 -07:00
Chris Robinson ccf356a03d Include a missing header for atomic 2018-11-01 08:17:23 -07:00
Chris Robinson 95966c4d92 Fix another use of auto uniform initialization 2018-11-01 08:15:47 -07:00
Chris Robinson 759c3a996c Avoid all uniform initialization with auto
Because of early C++11 (GCC 4.x) deficiencies, it's not interpreted correctly.
Either declare the type name explicitly with uniform initization, or use auto
with = initialization. It'll be fine when updating to GCC 5 or Clang 3.6.
2018-11-01 08:04:21 -07:00
Chris Robinson 353bb1ed17 Avoid uniform initialization on auto for integer types
To work around a deficiency with early C++11 compilers (GCC 4.x).
2018-10-31 22:10:26 -07:00
Chris Robinson d41fbd5c2d Convert the PulseAudio backend to C++ 2018-10-31 20:09:14 -07:00
Chris Robinson de275408fa Make a const array constexpr 2018-10-31 13:31:14 -07:00
Chris Robinson 0e7986eaa8 Move some extern inline declarations to C 2018-10-31 13:21:05 -07:00
Chris Robinson 9dba90fa20 Avoid assigning in an if statement 2018-10-31 13:00:08 -07:00
Chris Robinson 77bac8eeaa Add a missing <array> include 2018-10-31 12:01:07 -07:00
Chris Robinson 4d422dfb24 Fix some backup atomic macros 2018-10-31 12:00:02 -07:00
Chris Robinson 624bc1c839 Convert alBuffer.c to C++
A test to ensure everything works.
2018-10-31 10:37:16 -07:00
Chris Robinson 4b7af24ed5 Add specializations for lock_guard and unique_lock to take almtx_t 2018-10-31 10:35:12 -07:00
Chris Robinson 1e8c6df7b9 Add a C++ ContextRef helper to manage a ALCcontext reference 2018-10-31 10:05:15 -07:00
Chris Robinson da150572f9 Clean up the DriverIface in its destructor 2018-10-30 17:03:21 -07:00
Chris Robinson 615c025b67 Add a missing include for array 2018-10-30 16:35:14 -07:00
Chris Robinson 08aa9d898b Remove an unnecessary include 2018-10-30 16:32:25 -07:00
Chris Robinson 6a8f5e5950 Build the router with AppVeyor 2018-10-30 15:38:11 -07:00
Chris Robinson f747ac8882 Clean up the router's PtrIntMap 2018-10-30 14:28:19 -07:00
Chris Robinson 44f91760b5 Use std::array instead of raw arrays 2018-10-30 10:01:49 -07:00
Chris Robinson e2a1dd4503 Use std::wstring in place of some fixed WCHAR arrays 2018-10-30 09:31:52 -07:00
Chris Robinson ce212c911c Add a cmake option to static-link winpthread 2018-10-30 09:24:39 -07:00
Chris Robinson c17e59f63a Use std::vector instead of custom dynamic arrays 2018-10-30 08:33:40 -07:00
Chris Robinson e75e0a342e Use C++ atomics and mutexes in the router 2018-10-30 07:30:46 -07:00
Chris Robinson a0d03e50e8 Convert the router to C++ 2018-10-30 07:06:03 -07:00
Chris Robinson f17b930638 Add extern "C" for router.h 2018-10-30 06:45:44 -07:00
Chris Robinson 71303b73a4 Add a cmake option to static-link libstdc++ 2018-10-29 20:55:45 -07:00
Chris Robinson 3deb7c6ed5 Workaround C++ compatiility issues for atomic.h
This isn't wholly correct since neither C11 or C++11 guarantee compatibility
between atomic implementations. It's desired behavior and mostly works, see:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html

Alignment issues can be fixed with manual alignas() specifications, should the
need arise.
2018-10-29 20:50:57 -07:00
Chris Robinson 5fea511cce Fix some more headers for C++ 2018-10-29 11:51:41 -07:00
Chris Robinson 662e1c5cc2 Fix some uses of RESTRICT 2018-10-29 11:50:41 -07:00
Chris Robinson ea3789d985 Update version for AppVeyor 2018-10-29 11:35:43 -07:00
Chris Robinson 903d878460 Replace restrict with RESTRICT 2018-10-29 11:32:50 -07:00
Chris Robinson 184241f2ef Simplify a couple more checks 2018-10-29 10:17:30 -07:00
Chris Robinson e876b50113 Remove unnecessary uses of IN_IDE_PARSER 2018-10-29 10:10:37 -07:00
Chris Robinson 7d5a288e83 Add a couple casts for compiling with C++
Also avoid using __builtin_types_compatible_p, which seems broken with C++?
2018-10-29 10:10:37 -07:00
Chris Robinson 1d7b0f54be Add another missing extern "C" 2018-10-29 10:10:37 -07:00
Chris Robinson 8a8ab68f1c Add a more C++-friendly VECTOR_RESIZE 2018-10-29 10:10:37 -07:00
Chris Robinson fd1361c198 Add a RESTRICT macro to help with C++ compatibility 2018-10-29 10:10:37 -07:00
Chris Robinson 5148a73a7b Add missing extern "C" 2018-10-29 10:10:37 -07:00
Chris Robinson f1058c635f Handle C++-only compile flags in cmake 2018-10-29 10:10:37 -07:00
Chris Robinson 7f8ef092aa Fix a couple internal headers to compile with C++ 2018-10-29 10:10:37 -07:00
kcat 44a4602508 Merge pull request #240 from ShFil119/impr/simplify_statements
Simplify some statements
2018-10-29 10:10:06 -07:00
Filip Gawin 08226bc6b0 Simplify some statements 2018-10-29 13:38:58 +01:00
kcat 56b8b97642 Merge pull request #236 from alexey-lysiuk/macos_semaphore
Use GCD semaphore on macOS
2018-10-15 14:16:49 -07:00
alexey.lysiuk c8d866a25a Use GCD semaphore on macOS
Unnamed POSIX semaphore doesn't work on macOS
2018-10-15 19:41:22 +03:00
Chris Robinson 6761218e51 Release 1.19.1 openal-soft-1.19.1 2018-10-11 15:05:31 -07:00
Chris Robinson 31b9c50721 Use the common init/close functions for alffplay 2018-10-10 16:16:00 -07:00
Chris Robinson f589244fb6 Allow building alffplay without experimental extensions 2018-10-08 15:03:49 -07:00