guard the feature macros

master
Daniel Kolesa 2018-04-19 02:16:35 +02:00
parent d8e2fe4f31
commit af87ee2a8b
1 changed files with 8 additions and 0 deletions

View File

@ -4,8 +4,16 @@
*/
/* mainly only for glibc, but it's harmless elsewhere */
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#define _POSIX_C_SOURCE 200809L
#ifndef _ATFILE_SOURCE
#define _ATFILE_SOURCE 1
#endif
#include <cstdlib>
#include <ctime>