Merge pull request #133 from louib/glibc_deprecated_warnings

Suppress warnings from glibc macros.
This commit is contained in:
PartialVolume
2019-11-19 12:44:10 +00:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -18,8 +18,13 @@
*
*/
#define _POSIX_SOURCE
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#include "stdio.h"
#include "stdlib.h"

View File

@@ -20,7 +20,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#include <stdint.h>
#include <time.h>