GravisZro
9a80863c7f
Ensure STDCALL/STDCALLPTR is only invoked on x86
...
Prevent the code from trying to use stdcall for anything except (32-bit) x86 builds
because it's the only platform it's applicable for.
2024-04-21 22:24:50 -04:00
Daniel Gibson
94ce70bb89
AudioDecoder: Get rid of custom malloc/free functions
...
were never set anyway, and (the real) libacm doesn't support custom
allocators.
2024-04-21 18:25:52 +02:00
Kevin Bentley
44c4f867e8
Removed extraneous license
2024-04-20 10:15:38 -06:00
Kevin Bentley
1f45163248
Updated source to reflect the license that this code is released under.
2024-04-20 09:57:49 -06:00
C.W. Betts
57078ae4b5
Change most sprintf to snprintf.
...
This also includes vsprintf to vsnprintf.
2024-04-19 12:31:28 -06:00
Edu Garcia
066b436fd9
Revert "Cfile module update"
2024-04-19 13:57:55 +01:00
Louis Gombert
21fb443cb3
Merge pull request #74 from GravisZro/fix/warnings
...
Fix build warnings (NULL instead of '\0')
2024-04-19 11:21:14 +00:00
Azamat H. Hackimov
9b45091633
Rename/move cfile related files
...
Rename to lowercase and move headers to own directory.
2024-04-19 00:17:15 +03:00
GravisZro
b5632bbc3e
Fix simple warnings
...
Most of these warnings are due to the use of NULL instead of 0 or NULL instead of '\0'.
Some are macro redefinitions. None of them are pointer storage related. Those will be
in another PR.
2024-04-18 15:13:35 -04:00
Dan Raviv
aaefe86a2a
Fix cf_SetSearchPath bad memory access (tested on macOS)
2024-04-18 10:33:21 -07:00
Edu Garcia
316d50a706
Merge pull request #59 from Lgt2x/fix-hog-64
...
Fix HOG file entry parser in 64 bit architectures
2024-04-18 07:55:17 +01:00
Louis Gombert
622b8278dc
Fix HOG file entry parser in 64 bit architectures
...
timestamp is 4 bytes in the file, but is read as an 8-bytes long when built on 64 bit architectures, screwing up the read offset
2024-04-18 08:23:22 +02:00
Matt Stephenson
e1af942a13
Use __aarch64__ instead of __arm64__ for Linux builds
...
Signed-off-by: Matt Stephenson <mstephenson6@users.noreply.github.com>
2024-04-18 01:34:24 -04:00
Azamat H. Hackimov
9e6ebbc8fb
Remove dublicate byteswap.h
...
Linux-specific byteswap.h just includes BYTESWAP.H, so there no need platform-specific header.
Fixes "non-portable path to file" ([-Wnonportable-include-path]) warnings.
2024-04-18 03:20:36 +03:00
Azamat H. Hackimov
a6d90107bf
Re-format with clang-format recently changed files
2024-04-18 00:46:57 +03:00
Thomas Otto
b909a4cf43
Convert min/max macros to std::min/max
...
Added explicit <float> or <int> template argument where needed.
Add -DNOMINMAX define for Windows.
2024-04-17 21:43:38 +02:00
Louis Gombert
4247f30c3d
Merge pull request #21 from th1000s/misc_linux
...
Linux build fixes: remove unused osMutex code and typedefs
2024-04-17 18:46:42 +00:00
Louis Gombert
4d181c8ab3
Merge pull request #20 from th1000s/cmake_unix
...
Set C++ to 17, and a few CMake fixes for Linux
2024-04-17 18:39:51 +00:00
Edu Garcia
c7898fae7e
Merge pull request #40 from jcoby/fix-mac-m-series
...
Apple M-Series Fixes
2024-04-17 17:03:48 +01:00
Jacob Coby
531e528c61
Apple M-Series Fixes
...
* Adds portable debug_break (https://github.com/scottt/debugbreak/ )
* Adds Brewfile for Homebrew deps
* use isfinite() instead of finite()
* Stub int3 code in mveasm
2024-04-17 09:09:22 -04:00
Jeff Slutter
69a2e15625
Committing local fixes and changes I had.
2024-04-16 22:53:28 -05:00
Thomas Otto
26266d625c
Unix: set -std=c++17 explicitly
...
remove register keyword, add cstdint include
2024-04-17 01:38:18 +02:00
Thomas Otto
b58d3585bd
Remove unused osMutex code
...
It was never Acquire'd, only Created and Destroyed; and it was
a stub on Linux and macOS.
2024-04-17 01:20:51 +02:00
Azamat H. Hackimov
38128ea134
Additional clang-format
2024-04-17 00:25:04 +03:00
Kevin Bentley
61be1317b2
More clanging
2024-04-16 14:46:12 -06:00
Kevin Bentley
7399b5a2f2
Fix CRLF line endings.
2024-04-16 14:21:35 -06:00
Dan Raviv
3f11c5d78e
Movie handles avoid assuming pointer size is 32 bits
2024-04-16 13:02:45 -07:00
Kevin Bentley
c6640cc631
clang-format on everything.
2024-04-16 12:56:40 -06:00
Kevin Bentley
df209742fc
Initial import
2024-04-15 21:43:29 -06:00