Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LLONG_MAX not available from c++



martin%duskware.de@localhost (Martin Husemann) writes:

> > c++ -dM -E - < /dev/null | fgrep __STDC_VERSION__
>#define __STDC_VERSION__ 201710L
> > c++ -dM -E - < /dev/null | fgrep __ISO

There is magic involved.

% touch c.c
% ls -l c.c
-rw-r--r--  1 mlelstv  staff  0 Mar 31 17:28 c.c

% c++ -dM -E - < c.c | grep STDC
#define __STDC_HOSTED__ 1
#define __STDC_UTF_16__ 1
#define __STDC_VERSION__ 201710L
#define __GNUC_STDC_INLINE__ 1
#define __STDC_UTF_32__ 1
#define __STDC__ 1

% c++ -dM -E c.c | grep STDC
#define __STDC_HOSTED__ 1
#define __STDC_UTF_16__ 1
#define __GNUC_STDC_INLINE__ 1
#define __STDC_UTF_32__ 1
#define __STDC__ 1




Home | Main Index | Thread Index | Old Index