Closed plicease closed 10 years ago
This should be rebased into 1 commit. There is also a HPUX CC build failure being reported by Tux, but that might be a separate fix.
This fix will definitely not address HP-UX, as the C macro is for the sun compiler. I'm not sure what the error message is and don't have access to an HP-UX box, but it is possible that the HP compiler doesn't like to mix static and extern inline as well. One comment I read when researching this issue was that the standard doesn't allow it but gcc does.
It may be cleaner to make our_strptime
static everywhere rather than doing it in the TP_INLINE macro for sun, but my initial take was to be cautious and avoid possible breakages elsewhere. I'm happy to amend the pull-request and test on sun (but not HP-UX) if that is the right thing to do.
Thanks for fixing this.
gcc does allow this, and I double checked that the macro I am using is NOT defined in gcc on sun
Here is the error without this patch: