Index: plugins/opendocument/common/xp/ODc_util.cpp =================================================================== --- plugins/opendocument/common/xp/ODc_util.cpp (revision 31403) +++ plugins/opendocument/common/xp/ODc_util.cpp (working copy) @@ -20,6 +20,7 @@ #include #include "ODc_util.h" #include "ut_std_string.h" +#include "ut_strptime.h" std::string ODc_reorderDate(const std::string &dateStr, bool fromISO) { Index: src/af/util/xp/ut_std_string.cpp =================================================================== --- src/af/util/xp/ut_std_string.cpp (revision 31411) +++ src/af/util/xp/ut_std_string.cpp (working copy) @@ -24,6 +24,7 @@ #include "ut_assert.h" #include "ut_std_string.h" #include "ut_string.h" +#include "ut_strptime.h" #include #include Index: src/af/util/xp/ut_string.h =================================================================== --- src/af/util/xp/ut_string.h (revision 31411) +++ src/af/util/xp/ut_string.h (working copy) @@ -165,12 +165,6 @@ ABI_EXPORT void UT_parse_properties(const char * props, std::map & map); -// implemented in UT_strptime.cpp - see strptime() as it is not avail on win. -extern "C" { -ABI_EXPORT char *UT_strptime (const char *buf, const char *format, struct tm *tm); -} - - #ifdef WIN32 #define snprintf _snprintf Index: src/af/util/xp/ut_strptime.c =================================================================== --- src/af/util/xp/ut_strptime.c (revision 31411) +++ src/af/util/xp/ut_strptime.c (working copy) @@ -32,6 +32,7 @@ #include #include #include +#include "ut_strptime.h" static int UT_strncasecmp (const char *s1, const char *s2, size_t n) { @@ -861,7 +862,7 @@ return (char *) rp; } - +extern __declspec(dllexport) char *UT_strptime (const char *buf, const char *format, struct tm *tmtm) { enum locale_status decided; @@ -872,3 +873,4 @@ #endif return UT_strptime_internal (buf, format, tmtm, &decided); } + Index: src/af/util/xp/ut_strptime.h =================================================================== --- src/af/util/xp/ut_strptime.h (revision 0) +++ src/af/util/xp/ut_strptime.h (working copy) @@ -0,0 +1,10 @@ +// implemented in UT_strptime.c - see strptime() as it is not avail on win. +#ifdef __cplusplus +extern "C" { +#endif + +extern __declspec(dllexport) char * UT_strptime (const char *buf, const char *format, struct tm *tm); + +#ifdef __cplusplus +} +#endif