木头云 b9dd75ccd9 fix(platform): rename linux/posix namespaces to avoid predefined macro conflict
Problem:
- 'linux' is a predefined macro on Linux platforms
- Using 'namespace linux' causes compilation errors
- Preprocessor replaces 'linux' with '1' before compilation

Solution:
- Rename 'namespace linux' to 'namespace linux_'
- Rename 'namespace posix' to 'namespace posix_'
- Update all 7 call sites accordingly:
  - linux/condition.h:  linux_::detail::make_timespec()
  - linux/mutex.h:      linux_::detail::make_timespec() (2 places)
  - posix/condition.h:  posix_::detail::make_timespec()
  - posix/mutex.h:      posix_::detail::make_timespec() (2 places)
  - posix/semaphore_impl.h: posix_::detail::make_timespec()

This prevents preprocessor macro expansion issues while maintaining
the ODR violation fix from the previous commit.
2025-11-30 07:07:14 +00:00
..
a0 impl robust mutex & condition (using alephzero's mtx implementation) 2021-10-23 19:06:33 +08:00
condition.h fix(platform): rename linux/posix namespaces to avoid predefined macro conflict 2025-11-30 07:07:14 +00:00
get_wait_time.h fix(platform): rename linux/posix namespaces to avoid predefined macro conflict 2025-11-30 07:07:14 +00:00
mutex.h fix(platform): rename linux/posix namespaces to avoid predefined macro conflict 2025-11-30 07:07:14 +00:00
sync_obj_impl.h Added a cleanup interface for the synchronization facilities 2024-11-17 17:39:03 +08:00