From 9b73fa0c18ece10e50121f7ffd0ce0f99586940c Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Sat, 2 Dec 2023 08:30:16 +0800 Subject: [PATCH] vstrt/win32.cpp: update `dummy()` signature --- vstrt/win32.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vstrt/win32.cpp b/vstrt/win32.cpp index 12996d8..1ed79f2 100644 --- a/vstrt/win32.cpp +++ b/vstrt/win32.cpp @@ -10,6 +10,8 @@ #include +#include + namespace { std::vector dlls = { // This list must be sorted by dependency. @@ -63,7 +65,11 @@ FARPROC loadDLLs() { return (FARPROC)h; } +#if ((NV_TENSORRT_MAJOR * 1000) + (NV_TENSORRT_MINOR * 100) + NV_TENSORRT_PATCH) == 9100 && defined(_WIN32) +static void * dummy() { // mimic getPluginRegistry +#else static int dummy() { // mimic getInferLibVersion +#endif return 0; }