virtualx-engine/platform
Omar Polo 04c08d1f8c
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!

(cherry picked from commit a3384b7461)
2021-10-10 12:27:51 +02:00
..
android SCons: Add DEV_ENABLED defines for target=debug builds 2021-10-04 11:25:02 +02:00
iphone SCons: Add DEV_ENABLED defines for target=debug builds 2021-10-04 11:25:02 +02:00
javascript Merge pull request #52714 from m4gr3d/provide_getter_for_project_data_dir_3x 2021-10-05 21:02:41 +02:00
osx SCons: Add DEV_ENABLED defines for target=debug builds 2021-10-04 11:25:02 +02:00
server SCons: Add DEV_ENABLED defines for target=debug builds 2021-10-04 11:25:02 +02:00
uwp Merge pull request #52964 from Pineapple/WIN32_LEAN_AND_MEAN 2021-10-05 12:03:52 +02:00
windows Merge pull request #52964 from Pineapple/WIN32_LEAN_AND_MEAN 2021-10-05 12:03:52 +02:00
x11 use .get_file() instead of basename(3) 2021-10-10 12:27:51 +02:00
register_platform_apis.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00