handle gmp in c++

This commit is contained in:
Vítor Santos Costa 2015-02-03 02:39:57 +00:00
parent 2f621e5b47
commit 916f010504

View File

@ -24,6 +24,10 @@
#endif #endif
#include <config.h> #include <config.h>
#if USE_GMP
#include <gmpxx.h>
#endif
extern "C" { extern "C" {
#include <stddef.h> #include <stddef.h>
@ -31,9 +35,6 @@ extern "C" {
#define old_cplusplus __cplusplus #define old_cplusplus __cplusplus
#undef __cplusplus #undef __cplusplus
#endif #endif
#if USE_GMP
#include <gmp.h>
#endif
#ifdef old_cplusplus #ifdef old_cplusplus
#define __cplusplus old_cplusplus #define __cplusplus old_cplusplus
#undef old_cplusplus #undef old_cplusplus