Skip to content

Commit 0647333

Browse files
committed
chore: Disable linux stuff on windows
1 parent ddf2f00 commit 0647333

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/pysamp/pygamemode.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ PyGamemode::PyGamemode(const char * path)
1818
sampgdk::logprintf("Couldn't load module.");
1919
return;
2020
}
21-
// see
21+
#ifndef WIN32
2222
dlopen("libpython3.5m.so", RTLD_LAZY | RTLD_GLOBAL);
23+
#endif
24+
2325
Py_Initialize();
2426
char cCurrentPath[FILENAME_MAX];
2527
GetCurrentDir(cCurrentPath, sizeof(cCurrentPath));

src/pysamp/pygamemode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "sampgdk.h"
66
#include <stdexcept>
77
#include "samp.h"
8-
#include <dlfcn.h>
98

109
#ifdef DEBUG
1110
#define PY_DEBUG
@@ -18,6 +17,7 @@
1817
#include <direct.h>
1918
#define GetCurrentDir _getcwd
2019
#else
20+
#include <dlfcn.h>
2121
#include <unistd.h>
2222
#define GetCurrentDir getcwd
2323
#endif

0 commit comments

Comments
 (0)