Re: ext/sysvmsg
| From: | Melvyn Sopacua | Date: | Tue, 08 Oct 2002 20:19:54 +0000 |
| Subject: | Re: ext/sysvmsg | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89250@lists.php.net to get a copy of this message | ||
At 21:11 8-10-2002, Sascha Schumann wrote:
It's not a typedef but the struct itself that's provided, so that doesn't work.Yes - it sounds logical, but we we're back to the old problem. Calling a sizeof on an unfinished type. I placed the #ifdefs, in the header, the global scope of the c file, and the function bodies and none worked. I also checked gcc -E preprocessor output and all looked in order. I might have overlooked something though.I'm curious. The following code works here.struct foo { int a; }; typedef struct foo php_sysmsg;What did not work for you?
It boils down to:
Please remove the mymsg part. It is not required and might
cause problems later on (e.g. mysql uses the my prefix as
well).
Good point - but also raises, whether to look for this struct in the first place.
Why not skip it all, and define it ISO C compliant, in php_ namespace?
Met vriendelijke groeten / With kind regards,
Webmaster IDG.nl
Melvyn Sopacua