Skip to content

Commit 6e00885

Browse files
committed
Moved to win32 defines instead
1 parent 9d112b0 commit 6e00885

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/port/ui/ObjectViewer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const char* ObjectListNames[] = { "Mario", "Unused 1", "Destructive", "Unuse
2424
"Pole-like", "Spawner", "Unimportant" };
2525

2626
void ObjectViewer::InitElement() {
27-
#ifndef __unix__
27+
#ifdef _WIN32
2828
HANDLE hProcess = GetCurrentProcess();
2929
SymSetOptions(SYMOPT_NO_IMAGE_SEARCH | SYMOPT_IGNORE_IMAGEDIR);
3030
SymInitialize(hProcess, "debug", true);
@@ -36,7 +36,7 @@ const char* GetFunctionName(const uintptr_t addr) {
3636
return functionNameCache[addr].c_str();
3737
}
3838

39-
#ifndef __unix__
39+
#ifdef _WIN32
4040
char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(TCHAR)];
4141
PSYMBOL_INFO pSymbol = reinterpret_cast<PSYMBOL_INFO>(buffer);
4242

0 commit comments

Comments
 (0)