Define _GNU_SOURCE properly, other header fixes

This lets -std=c89 build for gcc 8.4.0
This commit is contained in:
Matt Johnston
2021-03-04 21:03:02 +08:00
parent 8b0fdf8010
commit 03481aba06
6 changed files with 8 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
#ifndef DBMALLOC_H_
#define DBMALLOC_H_
#include "stdint.h"
#include "stdlib.h"
#include "options.h"
#include <stdint.h>
#include <stdlib.h>
void * m_malloc(size_t size);
void * m_calloc(size_t nmemb, size_t size);