The R Project SVN R

Rev

Rev 56474 | Rev 84952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56474 Rev 65805
Line 2... Line 2...
2
#include <config.h>
2
#include <config.h>
3
#endif
3
#endif
4
 
4
 
5
#include <stdint.h>
5
#include <stdint.h>
6
 
6
 
7
/* Local mod: assumes WIN32 is i386 and little-endian generic is 32-bit */
7
/* Local mod: assumes _WIN32 is i386 and little-endian generic is 32-bit */
8
#if defined(WIN32) || defined(__CYGWIN__)
8
#if defined(_WIN32) || defined(__CYGWIN__)
9
static uint32_t ntohl(uint32_t x)
9
static uint32_t ntohl(uint32_t x)
10
{ /* could write VC++ inline assembler, but not worth it for now */
10
{ /* could write VC++ inline assembler, but not worth it for now */
11
#ifdef _MSC_VER
11
#ifdef _MSC_VER
12
  return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24));
12
  return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24));
13
#else
13
#else