]> git.sur5r.net Git - cc65/blobdiff - include/stddef.h
New strtoimax and strtoumax standard functions as aliases for strtol/strtoul.
[cc65] / include / stddef.h
index 236feb9fd6f82d514040096568044d1c65309ad4..4b04318ef05a7f7de69d5619cadd6784e38973cc 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                stddef.h                                  */
+/*                                stddef.h                                  */
 /*                                                                           */
-/*                           Common definitions                             */
+/*                           Common definitions                             */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 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 _HAVE_ptrdiff_t
+#define _HAVE_ptrdiff_t
 typedef int ptrdiff_t;
-typedef char wchar_t;
+#endif
+#ifndef _HAVE_wchar_t
+#define _HAVE_wchar_t
+typedef unsigned short wchar_t;
+#endif
+#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)
@@ -59,4 +68,3 @@ typedef unsigned size_t;
 
 
 
-