(code refactoring)
* include/private/gc_priv.h (ptr_t): Define only if PTR_T_DEFINED is
not defined (previously).
* include/private/gcconfig.h (ptr_t): Likewise.
* include/private/gc_priv.h (PTR_T_DEFINED): Define macro.
* include/private/gcconfig.h (PTR_T_DEFINED): Likewise.
* include/private/gcconfig.h (ptr_t): Change type to char*; remove
void comments.
* include/private/gcconfig.h: Include stddef.h only if sony_news is
not defined (like in gc_priv.h).
#define TRUE 1
#define FALSE 0
-typedef char * ptr_t; /* A generic pointer to which we can add */
+#ifndef PTR_T_DEFINED
+ typedef char * ptr_t; /* A generic pointer to which we can add */
/* byte displacements and which can be used */
/* for address comparisons. */
+# define PTR_T_DEFINED
+#endif
#ifndef SIZE_MAX
# include <limits.h>
#ifndef GCCONFIG_H
#define GCCONFIG_H
-# ifndef GC_PRIVATE_H
- /* Fake ptr_t declaration, just to avoid compilation errors. */
- /* This avoids many instances if "ifndef GC_PRIVATE_H" below. */
- typedef struct GC_undefined_struct * ptr_t;
-# include <stddef.h> /* For size_t etc. */
-# endif
+#ifndef PTR_T_DEFINED
+ typedef char * ptr_t;
+# define PTR_T_DEFINED
+#endif
+
+#if !defined(sony_news)
+# include <stddef.h> /* For size_t, etc. */
+#endif
/* Note: Only wrap our own declarations, and not the included headers. */
/* In this case, wrap our entire file, but temporarily unwrap/rewrap */