We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6271f7f commit ba7eaf9Copy full SHA for ba7eaf9
lib/exename.cpp
@@ -17,23 +17,22 @@ limitations under the License.
17
#include "exename.h"
18
19
#include <array>
20
+#include <climits>
21
#include <cstring>
22
#include <filesystem>
23
#include <system_error>
24
-namespace P4 {
25
-
26
-#include <climits>
27
#ifdef __APPLE__
28
#include <unistd.h>
29
30
#include <mach-o/dyld.h>
31
#elif defined(_WIN32)
32
#include <windows.h>
33
#else
34
35
#endif
36
+namespace P4 {
+
37
std::filesystem::path getExecutablePath() {
38
#if defined(__APPLE__)
39
std::array<char, PATH_MAX> buffer{};
0 commit comments