Opened 21 years ago
Closed 19 years ago
#37 closed Patches (None)
Support for CodeWarrior for Palm OS 8
| Reported by: | nobody | Owned by: | jmaurer |
|---|---|---|---|
| Milestone: | Component: | None | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
I just worked out a small patch that allows the Boost
random package to work with CodeWarrior for Palm OS 8.
The difficulty was that CW for Palm ships with a
stripped-down version of MSL that does not include
unistd.h. In order to get Boost Random to compile,
I had to edit <boost/config/stdlib/msl.hpp>.
The change is as follows:
#if defined(__MSL__) && (__MSL__ >= 0x5000)
# define BOOST_HAS_STDINT_H
32c32,34
< # define BOOST_HAS_UNISTD_H
---
> # if ! defined(__PALMOS_TRAPS__)
> # define BOOST_HAS_UNISTD_H
> # endif
// boilerplate code:
# include <boost/config/posix_features.hpp>
#endif
Note:
See TracTickets
for help on using tickets.
