/*****************************************************************************/
/* */
-/* stddef.h */
+/* stddef.h */
/* */
-/* Common definitions */
+/* Common definitions */
/* */
/* */
/* */
-/* (C) 1998-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* Standard data types */
-#ifndef _PTRDIFF_T
-#define _PTRDIFF_T
+#ifndef _HAVE_ptrdiff_t
+#define _HAVE_ptrdiff_t
typedef int ptrdiff_t;
#endif
-#ifndef _WCHAR_T
-#define _WCHAR_T
+#ifndef _HAVE_wchar_t
+#define _HAVE_wchar_t
typedef unsigned short wchar_t;
#endif
-#ifndef _SIZE_T
-#define _SIZE_T
+#ifndef _HAVE_size_t
+#define _HAVE_size_t
typedef unsigned size_t;
#endif
/* NULL pointer */
-#ifdef NULL
-# undef NULL
-#endif
+#ifndef _HAVE_NULL
#define NULL 0
+#define _HAVE_NULL
+#endif
/* offsetof macro */
#define offsetof(type, member) (size_t) (&((type*) 0)->member)
-
/* */
/* */
/* */
-/* (C) 1998-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
-#include <stddef.h>
-
-
+/* size_t is needed */
+#ifndef _HAVE_size_t
+typedef unsigned size_t;
+#define _HAVE_size_t
+#endif
/* Standard exit codes */
#define EXIT_SUCCESS 0
/* */
/* */
/* */
-/* (C) 1998-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* NULL pointer */
-#ifdef NULL
-# undef NULL
-#endif
+#ifdef _HAVE_NULL
#define NULL 0
+#define _HAVE_NULL
+#endif
/* size_t is needed */
-#ifndef _SIZE_T
-#define _SIZE_T
+#ifndef _HAVE_size_t
+#define _HAVE_size_t
typedef unsigned size_t;
#endif
#define _UNISTD_H
-
+
/*****************************************************************************/
/* Data */
/*****************************************************************************/
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
+/* WE need size_t */
+#ifndef _HAVE_size_t
+#define _HAVE_size_t
+typedef unsigned size_t;
+#endif
+
/* We need off_t if sys/types is not included */
-#ifndef __HAVE_off_t
-#define __HAVE_off_t
+#ifndef _HAVE_off_t
+#define _HAVE_off_t
typedef long int off_t;
#endif
* Ullrich von Bassewitz, 2003-05-27
*/
+#include <stdio.h>
#include <stdlib.h>
int system (const char* s)