diff options
author | lloyd <[email protected]> | 2006-08-23 04:13:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-23 04:13:25 +0000 |
commit | 7df8c3ed065db43b5c0fa2d6f7eb546a803e99e8 (patch) | |
tree | 072ae53dcd9603d1491748593788dcba529c1c6d | |
parent | 8a8e8c6d725c23ab575c04e22603915824466dcf (diff) |
Put the definitions of Pipe::LAST_MESSAGE and Pipe::DEFAULT_MESSAGE into
pipe.cpp; apparently GCC was eliding them completely from the shared library
otherwise, meaning Boost.Python couldn't reference them.
-rw-r--r-- | include/pipe.h | 3 | ||||
-rw-r--r-- | src/pipe.cpp | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/pipe.h b/include/pipe.h index 0139e44f9..3535ebd11 100644 --- a/include/pipe.h +++ b/include/pipe.h @@ -18,8 +18,7 @@ namespace Botan { class Pipe : public DataSource { public: - static const u32bit LAST_MESSAGE = 0xFFFFFFFE; - static const u32bit DEFAULT_MESSAGE = 0xFFFFFFFF; + static const u32bit LAST_MESSAGE, DEFAULT_MESSAGE; void write(const byte[], u32bit); void write(const MemoryRegion<byte>&); diff --git a/src/pipe.cpp b/src/pipe.cpp index 8e1f46f00..721cdd4d2 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -281,4 +281,10 @@ u32bit Pipe::message_count() const return outputs->message_count(); } +/************************************************* +* Static Member Variables * +*************************************************/ +const u32bit Pipe::LAST_MESSAGE = 0xFFFFFFFE; +const u32bit Pipe::DEFAULT_MESSAGE = 0xFFFFFFFF; + } |