From ed222e2040cd999562b6f410067b26f07bafa9ba Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Thu, 25 Apr 2024 10:49:52 +0800 Subject: [PATCH] vstrt/win32.cpp: fix macro implementation --- vstrt/win32.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vstrt/win32.cpp b/vstrt/win32.cpp index 25f3723..b533c1f 100644 --- a/vstrt/win32.cpp +++ b/vstrt/win32.cpp @@ -13,7 +13,8 @@ #include #if NV_TENSORRT_VERSION >= 100001 -#define CONCAT_VERSION(name, version) (name "_" #version ".dll") +#define TO_STRING(x) #x +#define CONCAT_VERSION(name, version) (name "_" TO_STRING(version) ".dll") #endif // NV_TENSORRT_VERSION >= 100001 namespace {