Tk Source Code

View Ticket
Login
Ticket UUID: 1243949
Title: tkWinX.c: INPUT undeclared
Type: Bug Version: obsolete: 8.5a3
Submitter: magro Created on: 2005-07-24 15:34:29
Subsystem: 85. Win Build Assigned To: mdejong
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-07-27 00:04:24
Resolution: None Closed By: magro
    Closed on: 2005-07-26 17:04:24
Description:
System W2K SP4 and msys_mingw7.
Compile error:

tkWinX.c: In function `Tk_ResetUserInactiveTime':
tkWinX.c:1922: error: `INPUT' undeclared (first use in
this function)
tkWinX.c:1922: error: (Each undeclared identifier is
reported only once
tkWinX.c:1922: error: for each function it appears in.)
tkWinX.c:1922: error: syntax error before "inp"
tkWinX.c:1924: error: `inp' undeclared (first use in
this function)
tkWinX.c:1924: error: `INPUT_MOUSE' undeclared (first
use in this function)
tkWinX.c:1932: warning: implicit declaration of
function `SendInput'
make: *** [tkWinX.o] Error 1
User Comments: magro added on 2005-07-27 00:04:24:
Logged In: YES 
user_id=83653

OK, compiles now error free, thanks.

changed #define _WIN32_WINNT 0x0401 to 0x403

mdejong added on 2005-07-26 14:38:33:
Logged In: YES 
user_id=90858

What does _WIN32_WINNT get defined as on your system?
There is some code at the top of tk/win/tkWinX.c that looks
like:

/*
 * Make sure the SendInput API is available (NT SP 3):
 */
#if (_WIN32_WINNT <= 0x0400)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0403
#endif

You can find the value like so:

% cat t.c 
#include <windows.h>
int myval = _WIN32_WINNT;

% gcc -E t.c | grep myval
int myval = 0x0400  ;

magro added on 2005-07-24 22:34:34:

File Added - 143088: config.log

Attachments: