Commit 46a7e968 authored by Bernhard Schommer's avatar Bernhard Schommer
Browse files

Added diab specific macros for stddef to avoid redefinition of size_t.

parent aa838eba
......@@ -38,6 +38,14 @@
#define _STDDEF_H
#endif
#ifdef __DCC__
#if !defined(__size_t) && !defined(_SIZE_T)
#define __size_t
#define _SIZE_T
typedef unsigned int size_t;
#endif
#undef __need_size_t
#else
#if defined(_STDDEF_H) || defined(__need_size_t)
#ifndef _SIZE_T
#define _SIZE_T
......@@ -45,6 +53,7 @@ typedef unsigned long size_t;
#endif
#undef __need_size_t
#endif
#endif
#if defined(_STDDEF_H) || defined(__need_ptrdiff_t)
#ifndef _PTRDIFF_T
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment