diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-29 04:26:58 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-29 04:26:58 -0500 |
commit | 88abdc0fad3f7670a112ade487c1a8cb848d56bc (patch) | |
tree | 204f3cba9dfee5b9f53f6fb2e9ff15e872d17b9d /src/mem/SConscript | |
parent | 13e14ba93c8bc40c861d06b30f7a02f5c44514e4 (diff) | |
download | gem5-88abdc0fad3f7670a112ade487c1a8cb848d56bc.tar.xz |
SWIG: Ensure ptrdiff_t is a known type in gcc >= 4.6.1
This patch fixes a compilation error that occurs with gcc >= 4.6.1,
caused by swig not including cstddef and not using the std:: namespace
prefix for ptrdiff_t. There is an old patch,
http://reviews.m5sim.org/r/913/ that no longer applies cleanly and
this might be re-iterating the same issue.
We work around the problem by always enforcing the inclusion of
cstddef in all swig interface declarations, and also by explicitly
using std::ptrdiff_t.
Diffstat (limited to 'src/mem/SConscript')
0 files changed, 0 insertions, 0 deletions