Changeset 868735 in git for libpolys


Ignore:
Timestamp:
Jul 27, 2012, 6:18:57 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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.