/* not ANSI */
#if defined(STDC ) || defined(BORLANDC ) || defined(__arm) || defined([color=red]REMOTETASKS )
#ifndef NULL
#define NULL ((void *) 0)
#endif
#define USE_PROTOTYPES
#define _PROTO(X) X
#else /* not ANSI */
#ifndef NULL
#define NULL ((char *) 0)
#endif
#define _PROTO(X) ( )
#endif /* not ANSI */
But the makefiles define [color=blue]REMOTETASKS - they do not define [color=red]REMOTETASKS !!
Therefore the wrong definitions are created for NULL and _PROTO in Remote builds!
This doesn’t seem to upset MSVC 2003, but MSVC 2005 throws out loads of warnings:
tobias
June 11, 2007, 12:14pm
3
I have the habit of adding STDC in the Preprocessor Definitions in VS for the Project I work on, so I avoid the messages that way instead.
awneil
June 11, 2007, 12:33pm
4
Yes, that would avoid this particular instance - but you’d still be caught if there’s anywhere else that Wavecom have used REMOTETASKS when it should be REMOTETASKS …