godot/platform
Omar Polo a3384b7461 use .get_file() instead of basename(3)
On OpenBSD the compiler complains that calling basename(3) would lose
const qualifier.  basename(3) is defined as

	char *basename(char *);

and can, accorgindly to the POSIX.1, modify the passed string.

This uses the .get_file() method.  The check is necessary because
file_name could be a directory, in which case .get_file() would return
an empty string.  The .get_base_dir().get_file() idiom is already used.

The usage of get_file() and the check were suggested by theraot, thanks!
2021-10-08 20:10:26 +02:00
..
android Merge pull request #49382 from akien-mga/misc-cleanup 2021-06-07 11:57:47 +02:00
iphone Merge pull request #49137 from RandomShaper/ios_targeted_family 2021-05-31 10:34:49 +02:00
javascript Fixed missed IDHandler dependency in GodotFetch 2021-06-08 00:20:24 +02:00
linuxbsd use .get_file() instead of basename(3) 2021-10-08 20:10:26 +02:00
osx Add MOUSE_MODE_CONFINED_HIDDEN 2021-06-03 11:44:28 -04:00
uwp Add MOUSE_MODE_CONFINED_HIDDEN 2021-06-03 11:44:28 -04:00
windows Style: Cleanup uses of double spaces between words 2021-06-07 11:03:08 +02:00
register_platform_apis.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00