[liba] Use stddef.h

Change-Id: I6bd0999d173488e4aff989bdb1bfa93229de7eaa
This commit is contained in:
Romain Goyet
2016-07-05 13:27:33 +02:00
parent 0843fcd62c
commit 1b4b2638f7
4 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +0,0 @@
#ifndef LIBA_TYPES_H
#define LIBA_TYPES_H
typedef int size_t;
#endif

7
liba/include/stddef.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef LIBA_STDDEF_H
#define LIBA_STDDEF_H
#define NULL 0
typedef int size_t;
#endif

View File

@@ -2,7 +2,7 @@
#define LIBA_MALLOC_H
#include "private/macros.h"
#include "private/types.h"
#include <stddef.h>
LIBA_BEGIN_DECLS

View File

@@ -2,9 +2,7 @@
#define LIBA_STRING_H
#include "private/macros.h"
#include "private/types.h"
#define NULL 0
#include <stddef.h>
LIBA_BEGIN_DECLS