GNOME Bugzilla – Bug 676428
Fix building on 64 bit mingw-w64
Last modified: 2012-05-20 18:33:55 UTC
Build on 64 bit mingw-w64 fails with: gstglwindow_win32.c:144:1: error: conflicting types for 'gst_gl_window_new' gstglwindow.h:82:15: note: previous declaration of 'gst_gl_window_new' was here gstglwindow_win32.c: In function 'gst_gl_window_new': gstglwindow_win32.c:181:73: error: cast from pointer to integer of different size gstglwindow_win32.c: In function 'gst_gl_window_get_internal_gl_context': gstglwindow_win32.c:208:10: error: cast from pointer to integer of different size gstglwindow_win32.c: In function 'gst_gl_window_set_external_window_id': gstglwindow_win32.c:253:71: error: cast from pointer to integer of different size gstglwindow_win32.c:257:35: error: 'GWL_WNDPROC' undeclared (first use in this function) gstglwindow_win32.c:257:35: note: each undeclared identifier is reported only once for each function it appears in gstglwindow_win32.c:257:48: error: cast from pointer to integer of different size gstglwindow_win32.c:266:38: error: cast to pointer from integer of different size gstglwindow_win32.c:271:61: error: cast to pointer from integer of different size gstglwindow_win32.c:272:15: error: cast to pointer from integer of different size gstglwindow_win32.c:273:15: error: cast to pointer from integer of different size gstglwindow_win32.c:274:24: error: cast to pointer from integer of different size gstglwindow_win32.c:277:39: error: cast to pointer from integer of different size gstglwindow_win32.c:280:20: error: cast to pointer from integer of different size gstglwindow_win32.c: In function 'window_proc': gstglwindow_win32.c:477:80: error: cast from pointer to integer of different size gstglwindow_win32.c:479:93: error: cast from pointer to integer of different size gstglwindow_win32.c:484:104: error: cast from pointer to integer of different size gstglwindow_win32.c:489:103: error: cast from pointer to integer of different size gstglwindow_win32.c:489:130: error: cast from pointer to integer of different size gstglwindow_win32.c:492:91: error: cast from pointer to integer of different size gstglwindow_win32.c:569:41: error: 'GWL_WNDPROC' undeclared (first use in this function) gstglwindow_win32.c:569:54: error: cast from pointer to integer of different size gstglwindow_win32.c:580:91: error: cast from pointer to integer of different size gstglwindow_win32.c:585:96: error: cast from pointer to integer of different size gstglwindow_win32.c:591:95: error: cast from pointer to integer of different size The following patch fixes this, but might cause problems on other systems, because it changes some function signatures.
Created attachment 214499 [details] [review] Fix building on 64 bit mingw-w64
Pushed, thanks: commit 5955913a44d67db4297b4405fffdd5cd4ec5a768 Author: Raimo Järvi <raimo.jarvi@gmail.com> Date: Sun May 20 18:45:06 2012 +0300 Fix building on 64 bit mingw-w64 https://bugzilla.gnome.org/show_bug.cgi?id=676428 API/ABI compatibility is not really a concern, don't think anyone external is using this, and if, the API is declared unstable.