[Bf-committers] MSVC 7.1 compilation : buttons_editing.c,
bad declaration of ID, line 4391
Stephen Swaney
sswaney at centurytel.net
Sat Mar 17 14:24:22 CET 2007
On Sat, Mar 17, 2007 at 12:53:18PM +0100, jean-michel soler wrote:
> Source\blender\src\buttons_editing.c(4391) : error C2275: 'ID' : illegal
> use of this type as an expression
ID *id= ob->data;
We are still writing C code here, people. Declarations must
come *before* executable statements.
on the other issue:
> "snprintf" is not defined anywhere.
>... but "_snprintf" yes.
MSVC defines standard C library functions but puts their own
stink on them by prefixing them with an _underscore.
--
Stephen Swaney
sswaney at centurytel.net
More information about the Bf-committers
mailing list