Change flint_abort to abort only if flint > 2.5.2

This commit is contained in:
Tommy Hofmann 2017-03-02 17:18:18 +01:00
parent 42db548c92
commit dca95e673e
6 changed files with 38 additions and 0 deletions

6
arf.h
View file

@ -27,6 +27,12 @@
#include "fmpr.h"
#include "mag.h"
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -22,6 +22,12 @@
#include "flint/flint.h"
#include "flint/fmpz_mat.h"
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif

8
dlog.h
View file

@ -18,6 +18,14 @@
#define DLOG_INLINE static __inline__
#endif
#include "flint/flint.h"
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
#include "flint/ulong_extras.h"
#include "flint/nmod_vec.h"

6
fmpr.h
View file

@ -25,6 +25,12 @@
#include "flint/config.h"
#include "fmpz_extras.h"
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
#define TLS_PREFIX FLINT_TLS_PREFIX
#if defined(_MSC_VER) && defined(ARB_BUILD_DLL)

View file

@ -20,6 +20,12 @@
extern "C" {
#endif
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
/* currently defined in the arb module, but global to the library */
double arb_test_multiplier(void);

6
mag.h
View file

@ -24,6 +24,12 @@
#include "flint/fmpz.h"
#include "fmpz_extras.h"
#ifndef flint_abort
#if __FLINT_RELEASE <= 20502
#define flint_abort abort
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif