[BRLTTY] error when compiling with MinGW
Samuel Thibault
samuel.thibault at ens-lyon.org
Sun Oct 10 17:42:19 EDT 2010
marquats at studi.informatik.uni-stuttgart.de, le Sun 10 Oct 2010 16:29:59 +0200, a écrit :
> ./screen.c:80:15: error: storage size of 'class' isn't constant
Uh. Well, the attached patch should be fine.
Samuel
-------------- next part --------------
Index: Drivers/Screen/Windows/screen.c
===================================================================
--- Drivers/Screen/Windows/screen.c (révision 5399)
+++ Drivers/Screen/Windows/screen.c (copie de travail)
@@ -78,7 +78,7 @@
static int
tryToAttach (HWND win) {
#define CONSOLEWINDOW "ConsoleWindowClass"
- static char class[strlen(CONSOLEWINDOW)+1];
+ static char class[] = CONSOLEWINDOW;
DWORD process;
if (GetClassName(win, class, sizeof(class)) != strlen(CONSOLEWINDOW)
|| memcmp(class,CONSOLEWINDOW,strlen(CONSOLEWINDOW)))
More information about the BRLTTY
mailing list