Skip to content

Commit

Permalink
use __DARWIN_NO_LONG_LONG for existence of long long
Browse files Browse the repository at this point in the history
`clang++-mp-7.0 -stdlib=macports-libstdc++ -std=c++11 ...`
incorrectly determines that the long long data type does not exist.
__DARWIN_NO_LONG_LONG is available from the OS, always seems to work,
and is what GCC uses.
  • Loading branch information
MarcusCalhoun-Lopez authored and cjones051073 committed Apr 11, 2022
1 parent 345091d commit 780d2b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/math.h
Expand Up @@ -33,11 +33,9 @@ __MP__BEGIN_DECLS

/*
* this is the same condition that defines the function prototypes in
* the system <math.h>.
* the GCC <math.h>.
*/
#if ( ( defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L ) || \
! defined( __STRICT_ANSI__ ) || ! defined( __GNUC__ ) )
#else
#if !(__DARWIN_NO_LONG_LONG)
extern long long int llrint ( double );
extern long long int llrintf ( float );
extern long long int llrintl ( long double );
Expand Down

0 comments on commit 780d2b0

Please sign in to comment.