Skip to content

Commit ba7eaf9

Browse files
authored
Move includes outside of namespace
I'm assuming they were inside the namespace by accident? Signed-off-by: Steffen Smolka <smolkaj@google.com>
1 parent 6271f7f commit ba7eaf9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/exename.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,22 @@ limitations under the License.
1717
#include "exename.h"
1818

1919
#include <array>
20+
#include <climits>
2021
#include <cstring>
2122
#include <filesystem>
2223
#include <system_error>
2324

24-
namespace P4 {
25-
26-
#include <climits>
2725
#ifdef __APPLE__
2826
#include <unistd.h>
29-
3027
#include <mach-o/dyld.h>
3128
#elif defined(_WIN32)
3229
#include <windows.h>
3330
#else
3431
#include <unistd.h>
3532
#endif
3633

34+
namespace P4 {
35+
3736
std::filesystem::path getExecutablePath() {
3837
#if defined(__APPLE__)
3938
std::array<char, PATH_MAX> buffer{};

0 commit comments

Comments
 (0)