request POSIX.2001 definitions for fileno()
this also fixes compilation on Solaris 10 cf. feature_test_macros(7) Linux man page: > _POSIX_SOURCE > Defining this obsolete macro with any value is equivalent to defin‐ > ing _POSIX_C_SOURCE with the value 1. > > Since this macro is obsolete, its usage is generally not documented > when discussing feature test macro requirements in the man pages.
This commit is contained in:
parent
5bd3eaa481
commit
584e1fe92a
@ -49,7 +49,8 @@
|
||||
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
|
||||
#endif
|
||||
|
||||
#define _POSIX_SOURCE 1 /* for fileno() within <stdio.h> on unix */
|
||||
/* cf. http://man7.org/linux/man-pages/man7/feature_test_macros.7.html */
|
||||
#define _XOPEN_VERSION 600 /* POSIX.2001, for fileno() within <stdio.h> on unix */
|
||||
|
||||
|
||||
/****************************
|
||||
|
Loading…
Reference in New Issue
Block a user