Changeset 4846

Show
Ignore:
Timestamp:
06/18/07 21:14:59 (1 year ago)
Author:
morris
Message:

Add int min/max macros if missing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/base/wi-macros.h

    r4437 r4846  
    3030#define WI_MACROS_H 1 
    3131 
     32#ifndef INT8_MAX 
     33#define INT8_MAX                127 
     34#define INT16_MAX               32767 
     35#define INT32_MAX               2147483647 
     36#define INT64_MAX               9223372036854775807LL 
     37#define INT32_MIN               (-INT32_MAX-1) 
     38#define INT64_MIN               (-INT64_MAX-1) 
     39#define UINT8_MAX               255 
     40#define UINT16_MAX              65535 
     41#define UINT32_MAX              4294967295U 
     42#define UINT64_MAX              18446744073709551615ULL 
     43#endif 
     44 
    3245#define WI_STMT_START \ 
    3346        do { 
  • libwired/trunk/libwired/data/wi-string.c

    r4845 r4846  
    6868#include <wired/wi-hash.h> 
    6969#include <wired/wi-lock.h> 
     70#include <wired/wi-macros.h> 
    7071#include <wired/wi-private.h> 
    7172#include <wired/wi-runtime.h>