Build fail with MacOs in connectivity part

Norbert Thiebaud nthiebaud at gmail.com
Sun Jun 8 10:29:58 PDT 2014


On Sun, Jun 8, 2014 at 9:05 AM, julien2412 <serval2412 at yahoo.fr> wrote:
> --with-system-odbc
>
> Any idea?
>
> Julien
>

with-system-odbc pick sqlext.h from the 10.8 SDK

it define SQLWCHAR using

#if defined(WIN32)
typedef unsigned short SQLWCHAR;
#else
#  include <stdlib.h>

#  if defined(__cplusplus)              || \
      defined(_WCHAR_T)                 || \
      defined(_WCHAR_T_DEFINED)         || \
      defined(_WCHAR_T_DEFINED_)        || \
      defined(_WCHAR_T_DECLARED)        || \
      defined(_BSD_WCHAR_T_DEFINED_)    || \
      defined(_BSD_WCHAR_T_)            || \
      defined(_BSD_CT_RUNE_T_)
typedef wchar_t SQLWCHAR;
#  else
#    error Please make sure your system supports the wchar_t type
#  endif
#endif /* WIN32 */

iow as wchar_t which in 10.9 (iow using clang) is defined as int not
short. (see i386/_types.h)

Norbert


More information about the LibreOffice mailing list