Skip to content

Commit 77ad8de

Browse files
Biswa96rpavlik
authored andcommitted
tests: Fix typo in declspec keyword
This fixes the following errors with mingw toolchain. OpenXR-SDK-Source/src/tests/hello_xr/main.cpp:17:10: error: expected constructor, destructor, or type conversion before '(' token 17 | _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; | ^ OpenXR-SDK-Source/src/tests/hello_xr/main.cpp:19:10: error: expected constructor, destructor, or type conversion before '(' token 19 | _declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; | ^
1 parent 554b17a commit 77ad8de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/hello_xr/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
// Favor the high performance NVIDIA or AMD GPUs
1515
extern "C" {
1616
// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
17-
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
17+
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
1818
// https://gpuopen.com/learn/amdpowerxpressrequesthighperformance/
19-
_declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
19+
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
2020
}
2121
#endif // defined(_WIN32)
2222

0 commit comments

Comments
 (0)