Avoid duplicate type definitions, especially wchar_t which was inconsstent and caused trouble in libarchive

This commit is contained in:
Erik van der Kouwe
2010-08-23 17:00:04 +00:00
parent a2647a4181
commit 3211be5d14
4 changed files with 5 additions and 39 deletions
+2 -10
View File
@@ -7,6 +7,7 @@
#include <ansi.h>
#endif
#include <stddef.h>
#include <sys/null.h>
#define EXIT_FAILURE 1 /* standard error return using exit() */
@@ -17,16 +18,7 @@
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
/* The types are size_t, wchar_t, div_t, and ldiv_t. */
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t; /* type returned by sizeof */
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef char wchar_t; /* type expanded character set */
#endif
/* The types are div_t, and ldiv_t. */
/* Function Prototypes. */
_PROTOTYPE( void abort, (void) );