Commit 75d89aa4398cea08bcfcd5e53bc6adabb9c65178

Authored by Perry Werneck
1 parent 16f933aa
Exists in master and in 1 other branch develop

Corrigindo problemas encontrados ao compilar para windows depois da última atualização do MinGW

draw.c
... ... @@ -27,6 +27,12 @@
27 27 *
28 28 */
29 29  
  30 +#ifdef WIN32
  31 + #include <winsock2.h>
  32 + #include <windows.h>
  33 + #include <ws2tcpip.h>
  34 +#endif // WIN32
  35 +
30 36 #include <gtk/gtk.h>
31 37 #include <math.h>
32 38 #include <pw3270.h>
... ...
mouse.c
... ... @@ -98,7 +98,7 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr)
98 98 break;
99 99  
100 100 case GDK_2BUTTON_PRESS: // Double click - Select word
101   - if(lib3270_select_word_at(GTK_V3270(widget)->host,baddr));
  101 + if(lib3270_select_word_at(GTK_V3270(widget)->host,baddr))
102 102 lib3270_ring_bell(GTK_V3270(widget)->host);
103 103 break;
104 104  
... ...
oia.c
... ... @@ -27,6 +27,12 @@
27 27 *
28 28 */
29 29  
  30 +#ifdef WIN32
  31 + #include <winsock2.h>
  32 + #include <windows.h>
  33 + #include <ws2tcpip.h>
  34 +#endif // WIN32
  35 +
30 36 #include <pw3270.h>
31 37 #include <lib3270.h>
32 38 #include <lib3270/session.h>
... ...
properties.c
... ... @@ -27,6 +27,12 @@
27 27 *
28 28 */
29 29  
  30 +#ifdef WIN32
  31 + #include <winsock2.h>
  32 + #include <windows.h>
  33 + #include <ws2tcpip.h>
  34 +#endif // WIN32
  35 +
30 36 #include <gtk/gtk.h>
31 37 #include <lib3270.h>
32 38 #include <lib3270/session.h>
... ...
widget.c
... ... @@ -27,6 +27,12 @@
27 27 *
28 28 */
29 29  
  30 +#ifdef WIN32
  31 + #include <winsock2.h>
  32 + #include <windows.h>
  33 + #include <ws2tcpip.h>
  34 +#endif // WIN32
  35 +
30 36 #include <gtk/gtk.h>
31 37 #include <pw3270.h>
32 38 #include <lib3270.h>
... ... @@ -336,7 +342,7 @@ static void v3270_class_init(v3270Class *klass)
336 342 #ifdef WIN32
337 343 // http://git.gnome.org/browse/gtk+/tree/gdk/win32/gdkcursor-win32.c
338 344 // http://www.functionx.com/win32/Lesson02b.htm
339   - static const gchar * cr[V3270_CURSOR_COUNT] =
  345 + static const gchar * cr[LIB3270_POINTER_COUNT] =
340 346 {
341 347 "ibeam", // V3270_CURSOR_UNPROTECTED
342 348 "wait", // V3270_CURSOR_WAITING
... ...