diff options
Diffstat (limited to 'cpp/src/Ice/Protocol.cpp')
-rw-r--r-- | cpp/src/Ice/Protocol.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/Ice/Protocol.cpp b/cpp/src/Ice/Protocol.cpp index e405673ec4f..53a6e2bc96d 100644 --- a/cpp/src/Ice/Protocol.cpp +++ b/cpp/src/Ice/Protocol.cpp @@ -14,7 +14,11 @@ namespace IceInternal const Ice::Byte magic[] = { 0x49, 0x63, 0x65, 0x50 }; // 'I', 'c', 'e', 'P' +#ifdef __BCPLUSPLUS__ +const Ice::Byte requestHdr[headerSize + sizeof(Ice::Int)] = +#else const Ice::Byte requestHdr[] = +#endif { magic[0], magic[1], @@ -30,7 +34,11 @@ const Ice::Byte requestHdr[] = 0, 0, 0, 0 // Request id (placeholder) }; +#ifdef __BCPLUSPLUS__ +const Ice::Byte requestBatchHdr[headerSize + sizeof(Ice::Int)] = +#else const Ice::Byte requestBatchHdr[] = +#endif { magic[0], magic[1], |