Talk About Network

Google





Programming > Compilers LCC > UCHAR: #define,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1046 of 1093
Post > Topic >>

UCHAR: #define, typedef, and __stdcall in win.h (lcc-win32)

by odt@[EMAIL PROTECTED] (Olaf Dietrich) May 29, 2008 at 07:13 AM

/* I found this problem when compiling a single source file from
 * the current Tcl source (8.5.2):
 * lcc-win32 (version 3.8) re****ts an error with respect to its
 * own win.h header file if a UCHAR macro is defined before
 * inclusion of win.h.
 * The problem is demonstrated in the following short example:
 */

#define UCHAR(c) ((unsigned char) (c))
typedef unsigned char UCHAR;

UCHAR __stdcall a(void);

int main(void) { return 0; }


/* The error message is:
 *
 * | Error testit.c: 4  Syntax error; missing semicolon before  `a'
 * | Warning testit.c: 4  no type specified. Defaulting to int
 * | 1 error, 1 warning
 *
 * The same example compiles without problems with the
 * Visual C++ compiler.
 * 
 * Originally, the problem occured in line 14989 of
 * ...\lcc\include\win.h, i.e. in the line:
 *
 *   UCHAR APIENTRY Netbios(PNCB);
 *
 *
 * Olaf
 */
 




 2 Posts in Topic:
UCHAR: #define, typedef, and __stdcall in win.h (lcc-win32)
odt@[EMAIL PROTECTED] (O  2008-05-29 07:13:24 
Re: UCHAR: #define, typedef, and __stdcall in win.h (lcc-win32)
jacob navia <jacob@[EM  2008-05-29 14:26:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 13:33:17 PST 2009.