Thank you, I was using version <a href="http://0.9.4.">0.9.4.</a><br><br>It seems as though the IF statement did not work as I expected:<br><br>This works:<br><br>IF UNAME_SYSNAME == "Windows":<br> ctypedef struct ohmygod:<br>
int greece<br>ELSE:<br> ctypedef struct ohmygod:<br> float pelvis<br><br>While this doesn't:<br><br> ctypedef struct ohmygod:<br> IF UNAME_SYSNAME == "Windows":<br> int greece<br>
ELSE:<br>
float pelvis<br><br>I figure this is not implemented yet, but it would be nice to see in the future.<br><br><br><div class="gmail_quote">2008/6/4 Stefan Behnel <<a href="mailto:stefan_ml@behnel.de">stefan_ml@behnel.de</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div><div></div><div class="Wj3C7c"><br>
Jonne wrote:<br>
> I am trying to use the compile-time statements described here:<br>
> <a href="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/basics.html#mozTocId42018" target="_blank">http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/basics.html#mozTocId42018</a><br>
><br>
> 'DEF MAX_PAYLOAD = 32' gives me the following error:<br>
> /src/pyrextest/pyrextest.pxd:1:4: Syntax error in simple statement list<br>
><br>
> while using 'IF UNAME_SYSNAME != "Windows":' gives me<br>
> /src/pyrextest/pyrextest.pxd:173:11: Syntax error in C variable declaration.<br>
><br>
> Am I doing something wrong?<br>
<br>
</div></div>you didn't mention which Pyrex version you are using, so please verify that<br>
you have the latest version installed.<br>
<font color="#888888"><br>
Stefan<br>
</font></blockquote></div><br>