Ryan C. Gordon
fdd38a3f8a
Bumped main branch to to 3.2.0!
...
(This will, hopefully, become PhysicsFS 4.0, eventually.)
2022-09-30 16:14:24 -04:00
Ryan C. Gordon
6a7625cd77
apple: macOS 12.0 deprecated things called "master" for "main".
...
Try to look for the new name in the process's namespace before falling back
to the old one (and giving up on CD-ROM detection if everything falls apart).
iOS has PHYSFS_NO_CDROM_SUPPORT defined, so this isn't used there.
2022-09-29 14:13:33 -04:00
Ozkan Sezer
49662cd826
minor update to endian macros from SDL.
2022-09-29 18:55:04 +03:00
Ryan C. Gordon
4d9bcc3d1a
atomic: __PHYSFS_ATOMIC_(DECR|INCR) should return final value.
...
Fixes #46 .
2022-09-29 10:53:18 -04:00
Ryan C. Gordon
496817a9e8
PHYSFS_mkdir() should allow symlinks in the mounted writeDir itself.
...
Fixes #47 .
2022-09-29 10:27:23 -04:00
Ozkan Sezer
0d4e9aac45
silenced a -Wunused-but-set-variable warning.
2022-06-16 14:55:50 +03:00
Ozkan Sezer
65195f9c1a
define MINIZ_LITTLE_ENDIAN based on PHYSFS_BYTEORDER.
2022-06-15 23:10:00 +03:00
Ozkan Sezer
fb0901b10f
silence a -Wint-in-bool-context warning:
...
In file included from /home/runner/work/physfs/physfs/src/physfs.c:12:
/home/runner/work/physfs/physfs/src/physfs.c: In function ‘openDirectory’:
/home/runner/work/physfs/physfs/src/physfs.c:929:40: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
929 | BAIL_IF(!retval, claimed ? errcode : PHYSFS_ERR_UNSUPPORTED, NULL);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/physfs/physfs/src/physfs_internal.h:273:44: note: in definition of macro ‘BAIL_IF’
273 | #define BAIL_IF(c, e, r) do { if (c) { if (e) PHYSFS_setErrorCode(e); return r; } } while (0)
| ^
Closes https://github.com/icculus/physfs/issues/44
2022-06-15 20:56:28 +03:00
Ryan C. Gordon
f0c7367b0f
Update endian detection from latest in SDL2.
...
Fixes #43 .
2022-06-15 13:54:21 -04:00
Ozkan Sezer
e32221a104
cmake: add -Wall to CFLAGS for gcc and clang.
2022-06-15 08:56:28 +03:00
Ozkan Sezer
cfbbb255a2
minor warning fixes
2022-06-15 08:56:02 +03:00
Anonymous Maarten
2a90b1f469
cmake: collapse MSVC and MINGW into WIN32
2022-06-15 08:29:50 +03:00
Anonymous Maarten
88ef84c053
Make sure `pthread is not linked against when building with MinGW
...
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
2022-06-15 08:29:50 +03:00
Anonymous Maarten
9bc66b6469
add Windows CI
2022-06-15 08:29:50 +03:00
Anonymous Maarten
aabb732caf
cmake: fix warnings + use target_include_directories
2022-06-15 08:29:50 +03:00
Ryan C. Gordon
6925c1067d
Bumped copyright for 2022.
2022-05-20 23:27:26 -04:00
Ryan C. Gordon
64807353df
cmake: Don't try to use readline if you don't also have curses.
...
Fixes #17 .
2022-05-20 23:19:41 -04:00
Ryan C. Gordon
ed4ab15524
zip: workaround Windows Explorer bug.
...
If you edit a zip file with Windows Explorer, it will rewrite the entire
central directory, setting all files version_needed field to 2.0/MS-DOS,
but it won't touch files that it doesn't plan to alter, so you might end
up with a local header that doesn't match the central directory details.
We aren't currently using the version_needed information, so now we just
favor the local header's copy of it in case we ever need it, and don't
complain if the central directory doesn't match.
Fixes #24 .
2022-05-20 22:22:55 -04:00
Ryan C. Gordon
48e7c2e3af
root: Fix string handling of paths from PHYSFS_setRoot.
...
Fixes #4 .
2022-05-20 22:06:33 -04:00
Ryan C. Gordon
497934818b
Fixed memory leak when closing a DirHandle with a root (thanks, jajiradai!).
...
Fixes #3 .
2022-05-20 21:27:46 -04:00
Ryan C. Gordon
17b691b0ea
Let several archives be case-insensitive.
...
(and several more probably _should_ be but I don't have the details on
them at the moment. But now it's just changing a 1 to a 0 to fix those!)
2022-05-20 17:36:06 -04:00
Ozkan Sezer
14691399cd
disable dllexport from static builds.
...
Closes https://github.com/icculus/physfs/pull/15 .
2022-04-16 20:10:02 +03:00
Ozkan Sezer
20e90ed3c4
fix wording in os2.yml
2022-04-16 20:08:20 +03:00
Ozkan Sezer
eec3f7f79a
cmake: set os2 dll name to 'physfs'
...
not libphysfs, because of os2 limitation.
2022-04-16 11:42:50 -04:00
Ryan C. Gordon
3a3c552e50
ci: Fix OS/2 building.
...
Copy and pasted from SDL a little too quickly. :)
2022-04-16 11:30:19 -04:00
Ryan C. Gordon
b975bb679b
ci: Wire up OS/2 builds to GitHub Actions.
2022-04-16 11:24:53 -04:00
Ozkan Sezer
0ae9467685
physfs_platform_os2.c: eliminated signedness warnings.
2022-04-16 10:52:01 -04:00
Ozkan Sezer
cd2e055454
added __PHYSFS_ATOMIC_INCR and __PHYSFS_ATOMIC_DECR for watcom compiler
2022-04-16 10:52:01 -04:00
Ozkan Sezer
141dccb087
added a watcom makefile targeting os2
2022-04-16 10:52:01 -04:00
Ozkan Sezer
3abe069870
fixed os2 symbol exports
2022-04-16 10:52:01 -04:00
Ozkan Sezer
02b6a7f084
fixed windows symbol exports
2022-04-16 10:52:01 -04:00
Ryan C. Gordon
045ee2cb7f
cmake: Moved the install stuff around a little.
2022-04-15 20:45:21 -04:00
Ryan C. Gordon
a329a35993
cmake: Don't use the oldschool `endif(SAME_THING_AS_IF_LINE)` syntax.
2022-04-15 20:39:39 -04:00
Semphris
7305ee92a2
Added option to disable the installer
2022-04-15 20:25:10 -04:00
past-due
a0dfe220ff
physfs_platform_windows.c: Use newer APIs when permitted by _WIN32_WINNT
2021-10-16 10:30:47 -04:00
alfadur
b3cca6a026
add 0x10000 properly
2021-09-10 10:01:31 -04:00
alfadur
8eab55d173
add missing bit to UTF-16 surrogate pair conversion
2021-09-10 10:01:31 -04:00
Arthur Brianville (Ybalrid)
23690f316d
Add option to turn off the build of the documentation if Doxygen was found
2021-09-02 22:15:03 -04:00
pastdue
b8fa8fdcac
physfs_platform_posix.c: Use O_CLOEXEC / FD_CLOEXEC
2021-07-12 11:52:35 -04:00
pastdue
a9cb20772b
physfs_platform_posix.c: Retry on EINTR
2021-07-12 11:52:35 -04:00
James Le Cuirot
d8ba1a935c
Use the GNUInstallDirs CMake module to respect installation locations
...
Apparently use of LIB_SUFFIX is now discouraged. GNUInstallDirs does a
better job of setting a default.
The libdir of ${prefix}/lib in the pkg-config file caused warnings,
and possibly even failures, when linking on multilib systems where
/usr/lib is for 32-bit libraries rather than 64-bit libraries.
2021-07-11 19:00:28 -04:00
Ryan C. Gordon
0145431345
cmake: fixed "dist" target to use git instead of Mercurial.
2021-06-30 23:53:21 -04:00
Ryan C. Gordon
b7410d673e
Updated a URL to point to github.com
2021-06-30 23:39:12 -04:00
Ryan C. Gordon
fdf308fa88
Renamed .hgignore -> .gitignore
2021-06-30 23:32:32 -04:00
Matthew Albrecht
d24ce15922
Include alloca.h on Solaris and Linux platforms.
2021-06-30 08:52:57 -04:00
Ryan C. Gordon
69a7428787
Initial CI setup...
2021-06-29 13:22:39 -04:00
Ryan C. Gordon
ebe02ceb02
Create FUNDING.yml
2021-06-29 13:20:53 -04:00
Ryan C. Gordon
9b83066716
Reformat LICENSE.txt so GitHub sees it as zlib.
2021-06-29 13:19:59 -04:00
Ryan C. Gordon
13f00546a9
Bumped copyright for 2021.
2021-06-29 13:18:47 -04:00
Ryan C. Gordon
5ea6ba7557
msvc: Move stdarg.h include ahead of __PHYSFS_msvc_vsnprintf declaration.
2021-04-29 15:00:16 -04:00