Changeset 868735 in git


Ignore:
Timestamp:
Jul 27, 2012, 6:18:57 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '96ce329119711a2b80858c8365abd29f8460bbfa')
Children:
56bce656d03daaefa0813464effa1185b38c6673
Parents:
7920d2520df02c16094e91bd37b2087f8ec58ab6
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-27 18:18:57+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-27 19:03:53+02:00
Message:
removal of the dirty "include gmp.h without C++ declarations" hack

NOTE: the hack messes up any later STD C++ library inclusions since one has to include bits/c++config.h before un- or re- defining __cplusplus
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/si_gmp.h

    r7920d2 r868735  
    33
    44
     5#ifdef HAVE_FACTORY
    56// just assume that factory have been built (cplusplus.h!)
    67// instead of duplicating cf_gmp.h here for now...
    7 //#include <factory/cf_gmp.h>
    8 
    9 #if defined(__cplusplus) && defined(__GNUC__)
    10   #define __cplusplus_backup __cplusplus
    11   #undef __cplusplus
    12   extern "C" {
    13   #include <gmp.h>
    14   }
    15   #define __cplusplus __cplusplus_backup
     8#include <factory/cf_gmp.h>
    169#else
    17   #include <gmp.h>
     10#include <gmp.h>
    1811#endif
    19 
    2012
    2113#ifndef mpz_size1
Note: See TracChangeset for help on using the changeset viewer.