Skip to content

Commit

Permalink
vstrt/win32.cpp: update dummy() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Dec 2, 2023
1 parent 2b7c1cb commit 9b73fa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vstrt/win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <iostream>

#include <NvInferVersion.h>

namespace {
std::vector<std::wstring> dlls = {
// This list must be sorted by dependency.
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 9b73fa0

Please sign in to comment.