[
https://issues.apache.org/jira/browse/TUSCANY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pete Robbins closed TUSCANY-1529.
---------------------------------
Resolution: Fixed
> Tuscany SDO native for windows is not msvc backwards compatible
> ----------------------------------------------------------------
>
> Key: TUSCANY-1529
> URL: https://issues.apache.org/jira/browse/TUSCANY-1529
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-M3
> Environment: MSVC 8.0 and 7.1
> Reporter: Brady Johnson
> Priority: Minor
> Fix For: Cpp-Next
>
> Attachments: tuscany_patch_jira1529
>
>
> I've been trying to compile Tuscany on platforms other than VSExpress (which
> is msvc 8.0) and Linux.
> I came across something that doesn't compile on msvc7.1 in SDODate.cpp. The
> problem is the definition
> of localtime for windows. Its #define'd as localtime_s for windows. A simple
> check for compiler version
> would allow it to be defined for msvc 8.0 and anything previous, as follows:
> #ifndef tuscany_localtime_r
> #if defined(WIN32) || defined (_WINDOWS)
> #if _MSC_VER < 1400 // _MSC_VER: 1400 is msvc 8.0, so anything less is pre
> 8.0
> #define tuscany_localtime_r(value, ignore) localtime(&value);
> #else
> #define tuscany_localtime_r(value, tmp_tm) localtime_s(&tmp_tm, &value);
> #endif
> #else
> #define tuscany_localtime_r(value, tmp_tm) localtime_r(&value, &tmp_tm);
> #endif
> #endif // tuscany_localtime_r
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - [EMAIL PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]