Skip to content

Commit

Permalink
Use __cdecl instead of __stdcall.
Browse files Browse the repository at this point in the history
Otherwise nvapi_QueryInterface cannot be found in the x32 build.
  • Loading branch information
jp7677 committed Sep 16, 2019
1 parent 49ea3b3 commit da83a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvapi_private.h
Expand Up @@ -47,6 +47,6 @@ typedef enum {
#define NV_DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
NV_DECLARE_HANDLE(NVDX_ObjectHandle);

#define NVAPI_INTERFACE __declspec(dllexport) NvAPI_Status __stdcall
#define NVAPI_QUERYINTERFACE __declspec(dllexport) void* __stdcall
#define NVAPI_INTERFACE __declspec(dllexport) NvAPI_Status __cdecl
#define NVAPI_QUERYINTERFACE __declspec(dllexport) void* __cdecl
#define NVAPI_CAST reinterpret_cast<void*>

0 comments on commit da83a25

Please sign in to comment.