Skip to content

Commit 32244ac

Browse files
author
mutouyun
committed
fix(platform): Add FreeBSD detection and include detect_plat.h in detail.h
Fixed two critical issues from the rebase: 1. Added LIBIPC_OS_FREEBSD macro definition in detect_plat.h to enable FreeBSD platform detection alongside other OS checks 2. Added missing #include "libipc/imp/detect_plat.h" in detail.h to properly include platform detection macros These fixes ensure FreeBSD compilation will work correctly with the unified platform detection system.
1 parent 636d84b commit 32244ac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/libipc/imp/detect_plat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \
1616
defined(__NT__) || defined(__MSYS__)
1717
# define LIBIPC_OS_WIN32
18+
#elif defined(__FreeBSD__)
19+
# define LIBIPC_OS_FREEBSD
1820
#elif defined(__QNX__) || defined(__QNXNTO__)
1921
# define LIBIPC_OS_QNX
2022
#elif defined(__APPLE__)

src/libipc/platform/detail.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef LIBIPC_SRC_PLATFORM_DETAIL_H_
22
#define LIBIPC_SRC_PLATFORM_DETAIL_H_
33

4+
#include "libipc/imp/detect_plat.h"
5+
46

57
#if defined(__cplusplus)
68

@@ -97,3 +99,4 @@ constexpr const T& (min)(const T& a, const T& b) {
9799
#endif // defined(__cplusplus)
98100
#endif // LIBIPC_SRC_PLATFORM_DETAIL_H_
99101

102+

0 commit comments

Comments
 (0)