summaryrefslogtreecommitdiff
path: root/mpfr.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-05-25 09:29:40 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-05-25 09:29:40 +0000
commitf888d3ef8374d87e682264a6b0b41b84ca7ba6ac (patch)
tree93d8a715923fd22a0f653a72b426affcf50444a9 /mpfr.h
parentc6c0b5b1aec2182d9d302ceb2cbae940187a29e3 (diff)
downloadmpfr-f888d3ef8374d87e682264a6b0b41b84ca7ba6ac.tar.gz
[mpfr.h] <stdint.h> support: also test _STDINT (for MS Visual Studio).
Thanks to Brian Gladman for the information. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6865 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.h')
-rw-r--r--mpfr.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/mpfr.h b/mpfr.h
index f58f3dd6e..11a481303 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -58,12 +58,14 @@ MPFR_VERSION_NUM(MPFR_VERSION_MAJOR,MPFR_VERSION_MINOR,MPFR_VERSION_PATCHLEVEL)
We do not check INTMAX_MAX and UINTMAX_MAX because under Solaris,
these macros are always defined by <limits.h> (i.e. even when
<stdint.h> and <inttypes.h> are not included).
- - _STDINT_H (defined by the glibc) and _STDINT_H_ (defined under
- Mac OS X), but this test may not work with all implementations.
+ - _STDINT_H (defined by the glibc), _STDINT_H_ (defined under
+ Mac OS X) and _STDINT (defined under MS Visual Studio), but
+ this test may not work with all implementations.
Portable software should not rely on these tests.
*/
#if (defined (INTMAX_C) && defined (UINTMAX_C) && !defined(__cplusplus)) || \
- defined (MPFR_USE_INTMAX_T) || defined (_STDINT_H) || defined (_STDINT_H_)
+ defined (MPFR_USE_INTMAX_T) || \
+ defined (_STDINT_H) || defined (_STDINT_H_) || defined (_STDINT)
# define _MPFR_H_HAVE_INTMAX_T 1
#endif