Skip to content

Commit 7e3bde5

Browse files
authored
fix clang-format (#134)
1 parent 0b75d2e commit 7e3bde5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/brynet/net/CurrentThread.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ namespace brynet { namespace net { namespace current_thread {
2323
#ifdef BRYNET_PLATFORM_WINDOWS
2424
using THREAD_ID_TYPE = DWORD;
2525
#elif defined BRYNET_PLATFORM_LINUX || defined BRYNET_PLATFORM_DARWIN || defined BRYNET_PLATFORM_FREEBSD
26-
# if defined BRYNET_PLATFORM_FREEBSD
26+
#if defined BRYNET_PLATFORM_FREEBSD
2727
using THREAD_ID_TYPE = pthread_t;
28-
# else
28+
#else
2929
using THREAD_ID_TYPE = int;
30-
# endif
30+
#endif
3131
#endif
3232

3333
static THREAD_ID_TYPE& tid()
@@ -45,16 +45,16 @@ static THREAD_ID_TYPE& tid()
4545
#elif defined BRYNET_PLATFORM_LINUX
4646
cachedTid = static_cast<pid_t>(::syscall(SYS_gettid));
4747
#elif defined BRYNET_PLATFORM_DARWIN || defined BRYNET_PLATFORM_FREEBSD
48-
# if defined BRYNET_PLATFORM_FREEBSD
48+
#if defined BRYNET_PLATFORM_FREEBSD
4949
cachedTid = pthread_self();
50-
# else
50+
#else
5151
// warning: 'syscall' is deprecated:
5252
// first deprecated in macOS 10.12 - syscall(2) is unsupported;
5353
// please switch to a supported interface.
5454
uint64_t tid64;
5555
pthread_threadid_np(NULL, &tid64);
5656
cachedTid = (pid_t) tid64;
57-
# endif
57+
#endif
5858
#endif
5959
}
6060

0 commit comments

Comments
 (0)