Changeset 68e548 in git


Ignore:
Timestamp:
Mar 30, 2011, 3:18:13 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
cce694ced07925c1c2ad8a166177a070e40d29b5
Parents:
cf3743ac8056f3ef32435fb19bfb2336330b8591
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-30 15:18:13+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:15+01:00
Message:
FIX: define SIZEOF_LONG due to omalloc or via system limits
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/auxiliary.h

    rcf3743 r68e548  
    4444*/
    4545
    46 
     46// TODO: the following should go to some config.h... no?
    4747
    4848/* Define version as a string */
     
    5656// ---------------- Singular standard types etc.
    5757// BOOLEAN
     58
     59#include <omalloc/omalloc.h>
     60
     61#ifndef SIZEOF_LONG
     62
     63#include <climits>
     64
     65#ifndef LONG_BIT
     66#if ULONG_MAX == 0xffffffffUL
     67#define LONG_BIT 32
     68#elif ULONG_MAX == 0xffffffffffffffffULL
     69#define LONG_BIT 64
     70#else
     71#error "Unexpected max for unsigned long"
     72#endif
     73#endif
     74
     75#define SIZEOF_LONG (LONG_BIT/CHAR_BIT)
     76
     77#endif
     78
    5879
    5980#if (SIZEOF_LONG == 8)
Note: See TracChangeset for help on using the changeset viewer.