comparison dbmalloc.h @ 1798:8dc43b30c6bf

Define _GNU_SOURCE properly, other header fixes This lets -std=c89 build for gcc 8.4.0
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Mar 2021 21:03:02 +0800
parents d4efb7801fcd
children
comparison
equal deleted inserted replaced
1797:f680a19bd559 1798:8dc43b30c6bf
1 #ifndef DBMALLOC_H_ 1 #ifndef DBMALLOC_H_
2 #define DBMALLOC_H_ 2 #define DBMALLOC_H_
3 3
4 #include "stdint.h"
5 #include "stdlib.h"
6 #include "options.h" 4 #include "options.h"
5 #include <stdint.h>
6 #include <stdlib.h>
7 7
8 void * m_malloc(size_t size); 8 void * m_malloc(size_t size);
9 void * m_calloc(size_t nmemb, size_t size); 9 void * m_calloc(size_t nmemb, size_t size);
10 void * m_strdup(const char * str); 10 void * m_strdup(const char * str);
11 void * m_realloc(void* ptr, size_t size); 11 void * m_realloc(void* ptr, size_t size);