Mercurial > minori
comparison dep/animone/src/fd.cc @ 299:246017a7907a
dep/animone: clean up OS X code
GetProcessName() really belongs in fd.cc after removing the
stupid unnecessary LaunchServices code that was stolen from...
some library :)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 14:15:47 -0400 |
parents | 1a6a5d3a94cd |
children | b1f625b0227c |
comparison
equal
deleted
inserted
replaced
298:dec4d3c9a909 | 299:246017a7907a |
---|---|
8 # include "animone/fd/proc.h" | 8 # include "animone/fd/proc.h" |
9 #endif | 9 #endif |
10 | 10 |
11 #ifdef MACOSX | 11 #ifdef MACOSX |
12 # include "animone/fd/xnu.h" | 12 # include "animone/fd/xnu.h" |
13 # include "animone/util/osx.h" | |
14 #endif | 13 #endif |
15 | 14 |
16 #ifdef BSD | 15 #ifdef BSD |
17 # include "animone/fd/bsd.h" | 16 # include "animone/fd/bsd.h" |
18 #endif | 17 #endif |
73 #ifdef LINUX | 72 #ifdef LINUX |
74 success ^= proc::GetProcessName(pid, name); | 73 success ^= proc::GetProcessName(pid, name); |
75 #endif | 74 #endif |
76 | 75 |
77 #ifdef MACOSX | 76 #ifdef MACOSX |
78 success ^= osx::util::GetProcessName(pid, name); | 77 success ^= xnu::GetProcessName(pid, name); |
79 #endif | 78 #endif |
80 | 79 |
81 #ifdef BSD | 80 #ifdef BSD |
82 success ^= bsd::GetProcessName(pid, name); | 81 success ^= bsd::GetProcessName(pid, name); |
83 #endif | 82 #endif |