Menu

#3 Patch for be32_to_cpu-function, if you do not have winsock2

open
nobody
None
5
2006-07-13
2006-07-13
StarWarsFan
No

Hi!

This patch applies a modification to datatypes.h for
the case that you not have netinet_in.h and winsock2.h.
If this is the case and you are using MSVC V7+ (2003),
then some inline assembler function where used for the
function be32_to_cpu(uint32_t v).

In the attached *.zip you find a diff and the whole
datatypes.h.

Hints and notes to this patch are welcome, so please
let me know if you got suggestions. Thx

Yours,
Yves

Discussion

  • StarWarsFan

    StarWarsFan - 2006-07-13

    MSVC patch for datatypes.h

     
  • Nobody/Anonymous

    I'm not sure in what situation someone would have MSVC but not have the Windows SDK available, with its header files?

     
  • Jonathan Lennox

    Jonathan Lennox - 2010-06-01

    Sorry, last comment was me (wasn't logged in).

     

Log in to post a comment.