cvs commit: ponie/perl perl.h

[email protected] (Nicholas Clark) 26 Jun 2004 14:58:39 -0000
Newsgroups perl.ponie.changes
Message-ID <[email protected]>
cvsuser     04/06/26 07:58:38

  Modified:    perl     perl.h
  Log:
  It seems that ANSI forbids zero sized structs. (This rings a bell)
  
  Revision  Changes    Path
  1.10      +3 -0      ponie/perl/perl.h
  
  Index: perl.h
  ===================================================================
  RCS file: /cvs/public/ponie/perl/perl.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -w -r1.9 -r1.10
  --- perl.h	24 Jun 2004 14:31:33 -0000	1.9
  +++ perl.h	26 Jun 2004 14:58:38 -0000	1.10
  @@ -1746,6 +1746,9 @@
   #   define STRUCT_SV sv
   #endif
   struct Ponie_Dummy_PMC {
  +#if !defined(__GNUC__)
  +    char something; /* Things with size zero are not allowed.  */
  +#endif
   };
   typedef struct Ponie_Dummy_PMC SV;
   typedef struct Ponie_Dummy_PMC AV;