From 17140e44cab8ab287d529771fb35ae7e0aaa9e60 Mon Sep 17 00:00:00 2001 From: Thiago Ize Date: Wed, 10 Dec 2025 16:14:43 -0600 Subject: [PATCH 1/2] __PRETTY_FUNCTION__ might already be defined by host code --- cuBQL/math/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cuBQL/math/common.h b/cuBQL/math/common.h index 0b462a6..3bd3559 100644 --- a/cuBQL/math/common.h +++ b/cuBQL/math/common.h @@ -61,7 +61,9 @@ # define CUBQL_INTERFACE /* nothing - currently not building any special 'cubql.dll' */ #if defined(_MSC_VER) -# define __PRETTY_FUNCTION__ __FUNCTION__ +# ifndef __PRETTY_FUNCTION__ +# define __PRETTY_FUNCTION__ __FUNCTION__ +# endif #endif From aaccace44b749a71e33b6f75cc478dcfbe30e95d Mon Sep 17 00:00:00 2001 From: Thiago Ize Date: Wed, 10 Dec 2025 17:34:06 -0600 Subject: [PATCH 2/2] small cleanup as checking for windows is redundant now --- cuBQL/math/common.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cuBQL/math/common.h b/cuBQL/math/common.h index 3bd3559..f217955 100644 --- a/cuBQL/math/common.h +++ b/cuBQL/math/common.h @@ -60,10 +60,8 @@ # define CUBQL_INTERFACE /* nothing - currently not building any special 'cubql.dll' */ -#if defined(_MSC_VER) -# ifndef __PRETTY_FUNCTION__ -# define __PRETTY_FUNCTION__ __FUNCTION__ -# endif +#ifndef __PRETTY_FUNCTION__ +# define __PRETTY_FUNCTION__ __FUNCTION__ #endif