Skip to content

Commit f9c23ec

Browse files
committed
Add user32.lib to link pyunity-editor
1 parent 4abd9cb commit f9c23ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ def addPackage(zf, name, path, orig, distInfo=False):
253253
"cl.exe", "/nologo", "/O2", "/Wall",
254254
"/Tc..\\pyunity-editor.c", "/Fo..\\pyunity-editor.obj",
255255
f"/I{sys.base_prefix}\\include", "/DNOCONSOLE",
256-
"/link", "..\\icons.res", "..\\version.res", "/subsystem:windows",
256+
"/link", "..\\icons.res", "..\\version.res", "user32.lib",
257+
"/subsystem:windows",
257258
f"/libpath:{sys.base_prefix}\\libs",
258259
"/out:pyunity-editor.exe"
259260
], stdout=sys.stdout, stderr=sys.stderr)

standalone/pyunity-editor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#ifdef NOCONSOLE
66
#include <windows.h>
7-
#define CHECK_ERROR(n) if (PyErr_Occurred() != NULL) { showError(); exit(1); }
7+
#define CHECK_ERROR() if (PyErr_Occurred() != NULL) { showError(); exit(1); }
88

99
void showError() {
1010
printf("Error encountered\n");

0 commit comments

Comments
 (0)