diff --git a/include/SWI-Prolog.h b/include/SWI-Prolog.h index 60b0d13ae..8115af8e2 100755 --- a/include/SWI-Prolog.h +++ b/include/SWI-Prolog.h @@ -26,7 +26,7 @@ extern "C" { #endif -#if USE_GMP +#if USE_GMP && !defined(__cplusplus) #include #endif @@ -798,7 +798,7 @@ PL_EXPORT(int) PL_unr1egister_blob_type(PL_blob_t *type); PL_EXPORT(int) PL_raise(int sig); #endif -#if USE_GMP +#if USE_GMP && !defined(__cplusplus) #include