Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-01-07 07:36:18


Compatibility headers (in boost\compatibility\cpp_c_headers)
don't compile with BCB 6.4.

Bellow is what needs to be changed. Since headers are generated, the
generator should be updated but I don't know its details.

Fixing these problems helps with porting serialization library on BCB.

/Pavel

__________________________________________________________
In "cwchar" add:

#if (defined __BORLANDC__) && (__BORLANDC__ < 0x570)
# include <stdio.h>
# include <time.h>
# include <stdlib.h>
#endif

to bring in - getwchar
            - ungetwc
            - fgetwc
            - vfwprintf
            - fgetws
            - vswprintf
            - wcsftime (time.h)
            - wmemcmp
            - fgetws
            - mbrtowc
            - vswprintf
            - fputwc
            - vwprintf
            - wcstod (stdlib.h)
            - fputws
            - putwc
            - wcstol (stdlib.h)
            - wprintf
            - fwprintf
            - wcstoul (stdlib.h)

__________________________________________________________
In "cwchar":

These function and types are not available with BCB:
 - btowc
 - wcsrtombs
 - mbrlen
 - wmemcmp
 - mbrtowc
 - mbsinit
 - fwide
 - mbsrtowcs
 - wctob
 - wcrtomb
 - wmemmove

and need to be conditionally commented out.

__________________________________________________________
In "cwctype" add:

#if (defined __BORLANDC__) && (__BORLANDC__ < 0x570)
# include <ctype.h>
#endif

to bring in
 - iswalnum
 - iswlower
 - iswspace
 - iswalpha
 - iswdigit
 - iswprint
 - iswupper
 - towlower
 - iswcntrl
 - iswgraph
 - iswpunct
 - iswxdigit
 - towupper

__________________________________________________________
In "cwctype":

These function and types are not available with BCB:
 - iswctype
 - wctrans_t
 - wctrans
 - towctrans
 - wctype

and need to be conditionally commented out.

__________________________________________________________
In "cstdlib" add:

#if (defined __BORLANDC__) && (__BORLANDC__ < 0x570)
# include <search.h>
#endif

to bring in
 - bsearch
 - qsort

__________________________________________________________
Rationale:
 - Kylix (__BORLANDC__ == 0x570) uses linux native headers

 - 0x564 is the last BCB (version 6, patch 4). It may happen
    there wil be some patch and this will bump version up.
    It is extremely unlikely headers will change.

 - the patch doesn't depend whether Rogue Wave or STLport is used

__________________________________________________________
EOF


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk