mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Properly check for program_invocation_name.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
72246862af
commit
da68980fdc
@ -78,6 +78,8 @@ AC_CHECK_DECL([SpvCapabilityDemoteToHelperInvocationEXT],, [AC_MSG_ERROR([SPIR-V
|
|||||||
# include "vulkan/spirv.h"
|
# include "vulkan/spirv.h"
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
|
AC_CHECK_DECLS([program_invocation_name],,,[#include <errno.h>])
|
||||||
|
|
||||||
dnl Check for libraries
|
dnl Check for libraries
|
||||||
m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config autoconf macros not found.])])
|
m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config autoconf macros not found.])])
|
||||||
|
|
||||||
|
@ -828,7 +828,7 @@ HRESULT vkd3d_load_vk_device_procs(struct vkd3d_vk_device_procs *procs,
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#if HAVE_DECL_PROGRAM_INVOCATION_NAME
|
||||||
|
|
||||||
bool vkd3d_get_program_name(char program_name[PATH_MAX])
|
bool vkd3d_get_program_name(char program_name[PATH_MAX])
|
||||||
{
|
{
|
||||||
@ -870,7 +870,7 @@ bool vkd3d_get_program_name(char program_name[PATH_MAX])
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _GNU_SOURCE */
|
#endif /* HAVE_DECL_PROGRAM_INVOCATION_NAME */
|
||||||
|
|
||||||
static struct vkd3d_private_data *vkd3d_private_store_get_private_data(
|
static struct vkd3d_private_data *vkd3d_private_store_get_private_data(
|
||||||
const struct vkd3d_private_store *store, const GUID *tag)
|
const struct vkd3d_private_store *store, const GUID *tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user