Skip to content

Commit 2d98d18

Browse files
committed
Fixed export of NvOptimusEnablement and AmdPowerXpressRequestHighPerformance symbols.
1 parent 9139616 commit 2d98d18

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/main/native/packr/src/win32/packr_win32.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ using namespace std;
2626

2727
const char __CLASS_PATH_DELIM = ';';
2828

29-
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
30-
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
29+
extern "C"
30+
{
31+
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
32+
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
33+
}
3134

3235
static void waitAtExit(void) {
3336
cout << "Press ENTER key to exit.";
-72.5 KB
Binary file not shown.

src/main/resources/packr-windows.exe

-53.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)