diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-02 21:35:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-02 21:35:11 +0000 |
commit | e50deec849426fb5c9781c7437874a5cf0058542 (patch) | |
tree | bfc65bf0764f79746fae11f13faefc4e2435f6f7 /src | |
parent | 17a3abfff825ff278545b7e31a6416f1f5b86cc8 (diff) | |
download | mpfr-e50deec849426fb5c9781c7437874a5cf0058542.tar.gz |
[src/mpfr-longlong.h] Added code to check that mpfr-longlong.h is not
included directly; MPFR_NEED_LONGLONG_H must be defined instead.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13930 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/mpfr-longlong.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mpfr-longlong.h b/src/mpfr-longlong.h index 4da815d7b..d773b4b53 100644 --- a/src/mpfr-longlong.h +++ b/src/mpfr-longlong.h @@ -45,6 +45,10 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., expected. */ +#ifndef MPFR_NEED_LONGLONG_H +# error "Never include mpfr-longlong.h directly; define MPFR_NEED_LONGLONG_H instead." +#endif + #define __BITS4 (W_TYPE_SIZE / 4) #define __ll_B ((UWtype) 1 << (W_TYPE_SIZE / 2)) #define __ll_lowpart(t) ((UWtype) (t) & (__ll_B - 1)) |