File: meson.build

package info (click to toggle)
glib2.0 2.85.1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 66,344 kB
  • sloc: ansic: 541,342; python: 9,624; sh: 1,572; xml: 1,482; perl: 1,222; cpp: 535; makefile: 316; javascript: 11
file content (24 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (C) 2002-2004, 2006-2018 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# gl_LONG_DOUBLE_VS_DOUBLE
# determines whether 'long double' and 'double' have the same representation.
# The currently known platforms where this is the case are:
# Linux/HPPA, Minix 3.1.8, AIX 5, AIX 6 and 7 with xlc, MSVC 9.

long_double_eq_double_test = '''
#include <float.h>
int main ()
{
  typedef int check[sizeof (long double) == sizeof (double)
                    && LDBL_MANT_DIG == DBL_MANT_DIG
                    && LDBL_MAX_EXP == DBL_MAX_EXP
                    && LDBL_MIN_EXP == DBL_MIN_EXP
                    ? 1 : -1];
  return check;
}
'''

gl_cv_long_double_equals_double = cc.compiles(long_double_eq_double_test)