Message90221
| Author |
markon |
| Recipients |
brett.cannon, georg.brandl, joe.amenta, loewis, markon, phd, r.david.murray, tim.golden |
| Date |
2009年07月07日.09:28:22 |
| SpamBayes Score |
6.774185e-05 |
| Marked as misclassified |
No |
| Message-id |
<1246958904.81.0.623561220716.issue6070@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
@r.david.murray:
Does this works on Windows? Are you sure Oleg? :)
Since you've done this:
#ifndef MS_WINDOWS
/* mode = ..*/
#endif
but on Windows the compiler "jumps" over this code, so you can get a
binding error, since it doesn't find the variable "mode"...
E.g (on my Debian):
#ifndef __GNUC__
#define X 10
#endif
int main()
{
printf("%d\n", X);
}
it gives error: ‘X’ undeclared (first use in this function) |
|