Mercurial > libdvdnav.hg
comparison bswap.h @ 185:36777e6346c5 src
First update for Win32/msvc support
author | tchamp |
---|---|
date | Tue, 29 Apr 2003 19:31:37 +0000 |
parents | b0aa6f7931c0 |
children | abb25c194c1b |
comparison
equal
deleted
inserted
replaced
184:c2e7199becdb | 185:36777e6346c5 |
---|---|
63 * problems so beware. | 63 * problems so beware. |
64 * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such | 64 * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such |
65 * functionality! | 65 * functionality! |
66 */ | 66 */ |
67 | 67 |
68 #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(_MSC_VER) | 68 #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) |
69 #define B2N_16(x) \ | 69 #define B2N_16(x) \ |
70 x = ((((x) & 0xff00) >> 8) | \ | 70 x = ((((x) & 0xff00) >> 8) | \ |
71 (((x) & 0x00ff) << 8)) | 71 (((x) & 0x00ff) << 8)) |
72 #define B2N_32(x) \ | 72 #define B2N_32(x) \ |
73 x = ((((x) & 0xff000000) >> 24) | \ | 73 x = ((((x) & 0xff000000) >> 24) | \ |