Don't set ACE_HAS_TIME_T_LONG_MISMATCH when we have a 64bit build with Visual Studio#2433
Don't set ACE_HAS_TIME_T_LONG_MISMATCH when we have a 64bit build with Visual Studio#2433jwillemsen wants to merge 2 commits into
Conversation
…SE_32BIT_TIME_T can only be used when building 32bit
* ACE/ace/config-win32-msvc-141.h:
WalkthroughThe conditional compilation logic for defining the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
ACE/ace/config-win32-msvc-141.h (1)
33-35: Condition refined correctly; please align comment and consider_WIN64The added
&& !defined(ACE_WIN64)correctly preventsACE_HAS_TIME_T_LONG_MISMATCHfrom being set on 64-bit builds. 👍
Two minor follow-ups:
- Lines 29-32 still describe the issue as 32-bit–specific; updating that comment will avoid confusion.
- Relying on the compiler macro
_WIN64(or guarding with both) is slightly safer in caseACE_WIN64is not yet defined when this header is parsed.Example tweak:
-#if !defined (_USE_32BIT_TIME_T) && !defined (ACE_WIN64) +#if !defined (_USE_32BIT_TIME_T) && !defined (ACE_WIN64) && !defined (_WIN64)Not blocking, just polish.
|
Existing code is correct for msvc, |
…SE_32BIT_TIME_T can only be used when building 32bit
Summary by CodeRabbit