Changeset a2cdd62 in git for libpolys/misc/mylimits.h


Ignore:
Timestamp:
Nov 15, 2011, 7:28:26 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
7d58b610fedb008c184de5ef38c1cd5bc05d1ecc
Parents:
4e855a74192517a72dcb8d0b593d1a3706ed88d9
Message:
fix: avoid limits.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/mylimits.h

    r4e855a7 ra2cdd62  
    1010#define _MYLIMITS_H
    1111
    12 #include <limits.h>
     12static const int MAX_INT_VAL = 2147483647;
    1313
    14 static const int MAX_INT_VAL = INT_MAX;
     14#define ULONG_MAX (~0L)
     15
     16#if ~0UL == 4294967295UL
     17#define LONG_MAX 9223372036854775807L
     18#else
     19#define LONG_MAX 2147483647L
     20#endif
    1521
    1622#endif /* _MYLIMITS_H */
Note: See TracChangeset for help on using the changeset viewer.