Changeset 25152

Show
Ignore:
Timestamp:
28.02.2012 15:16:58 (8 years ago)
Author:
sjm84
Message:

Fixing the missing stdint on VC++9

Location:
main/trunk/greenstone2/common-src/indexers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mg/lib/mglong.h

    r25147 r25152  
    22#define MGLONG_H 
    33 
     4#ifdef __unix__ 
    45#include <stdint.h> 
     6#else 
     7typedef __int8            int8_t; 
     8typedef __int16           int16_t;  
     9typedef __int32           int32_t; 
     10typedef __int64           int64_t; 
     11typedef unsigned __int8   uint8_t; 
     12typedef unsigned __int16  uint16_t; 
     13typedef unsigned __int32  uint32_t; 
     14typedef unsigned __int64  uint64_t; 
     15#endif 
    516 
    617#ifndef mg_u_long 
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/mglong.h

    r25147 r25152  
    22#define MGLONG_H 
    33 
     4#ifdef __unix__ 
    45#include <stdint.h> 
     6#else 
     7typedef __int8            int8_t; 
     8typedef __int16           int16_t;  
     9typedef __int32           int32_t; 
     10typedef __int64           int64_t; 
     11typedef unsigned __int8   uint8_t; 
     12typedef unsigned __int16  uint16_t; 
     13typedef unsigned __int32  uint32_t; 
     14typedef unsigned __int64  uint64_t; 
     15#endif 
    516#ifndef mg_u_long 
    617# define mg_u_long uint32_t