Well I added this to common.h, which doesn't fix the problem but it
gets around it by enabling the little-endian-assumption optimizations
for windows:


<patch>
Index: common.h

===================================================================
--- common.h    (revision 4984)
+++ common.h    (working copy)
@@ -76,6 +76,13 @@
   #define LIBPROTOC_EXPORT
 #endif

+
+// __BYTE_ORDER is not defined on Windows, so set it here:
+#if defined(_MSC_VER) && !defined(__BYTE_ORDER) && defined(_M_IX86)
+  #define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+
+
 namespace internal {

 // Some of these constants are macros rather than const ints so that
they can

</patch>


On Mar 23, 11:47 am, Nathan McDaniel <nmcdanie...@gmail.com> wrote:
> I am getting the following run-time check failure in coded_stream.h at
> the following function:
>
> "

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to