Ignore:
Timestamp:
03/22/07 22:51:37 (5 years ago)
Author:
matthiasm
Message:

Added a Microsoft VisualC V6 project file to compile a standalone command line version of NEWT/0. Cygwin must still be installed on the build system for lex (flex) and yacc (bison). No mayor changes were made to existing files, so I assume that no fixes are required for other platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/src/utils/endian_utils.c

    r68 r71  
    1414#include <string.h> 
    1515#include "utils/endian_utils.h" 
     16 
     17#if _MSC_VER==1200 
     18# define ULL(a) a 
     19#endif 
     20 
     21#ifndef ULL 
     22# define ULL(a) a##ULL 
     23#endif 
    1624 
    1725 
     
    3139    memcpy(&tmp, &d, sizeof(d)); 
    3240    tmp = (tmp >> 32) | (tmp << 32); 
    33     tmp = ((tmp & 0xff00ff00ff00ff00ULL) >> 8) | ((tmp & 0x00ff00ff00ff00ffULL) << 8); 
    34     tmp = ((tmp & 0xffff0000ffff0000ULL) >> 16) | ((tmp & 0x0000ffff0000ffffULL) << 16); 
     41    tmp = ((tmp & ULL(0xff00ff00ff00ff00)) >> 8) | ((tmp & ULL(0x00ff00ff00ff00ff)) << 8); 
     42    tmp = ((tmp & ULL(0xffff0000ffff0000)) >> 16) | ((tmp & ULL(0x0000ffff0000ffff)) << 16); 
    3543    memcpy(&d, &tmp, sizeof(d)); 
    3644 
Note: See TracChangeset for help on using the changeset viewer.