From: Jarkko Hietaniemi Date: Fri, 13 Oct 2000 14:50:42 +0000 (+0000) Subject: In Amdahl UTS "struct sv" is defined by a system header, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8d3c5dbe700bcf673400eeed81122fc068142b4;p=p5sagit%2Fp5-mst-13.2.git In Amdahl UTS "struct sv" is defined by a system header, . p4raw-id: //depot/perl@7217 --- diff --git a/perl.h b/perl.h index 1ae1bcf..b655e04 100644 --- a/perl.h +++ b/perl.h @@ -1456,7 +1456,12 @@ typedef struct pvop PVOP; typedef struct loop LOOP; typedef struct interpreter PerlInterpreter; -typedef struct sv SV; +#ifdef UTS +# define STRUCT_SV perl_sv /* Amdahl's has struct sv */ +#else +# define STRUCT_SV sv +#endif +typedef struct STRUCT_SV SV; typedef struct av AV; typedef struct hv HV; typedef struct cv CV; diff --git a/sv.h b/sv.h index fa73a86..425acc3 100644 --- a/sv.h +++ b/sv.h @@ -61,7 +61,7 @@ typedef enum { /* Using C's structural equivalence to help emulate C++ inheritance here... */ -struct sv { +struct STRUCT_SV { void* sv_any; /* pointer to something */ U32 sv_refcnt; /* how many references to us */ U32 sv_flags; /* what we are */