Skip to content

Commit 4c8bf61

Browse files
authored
Move includes outside of namespace (#5563)
Signed-off-by: Steffen Smolka <smolkaj@google.com>
1 parent f3fc73e commit 4c8bf61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/exename.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ 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>
2927

@@ -34,6 +32,8 @@ namespace P4 {
3432
#include <unistd.h>
3533
#endif
3634

35+
namespace P4 {
36+
3737
std::filesystem::path getExecutablePath() {
3838
#if defined(__APPLE__)
3939
std::array<char, PATH_MAX> buffer{};

0 commit comments

Comments
 (0)