Commit 75d89aa4398cea08bcfcd5e53bc6adabb9c65178
1 parent
16f933aa
Exists in
master
and in
1 other branch
Corrigindo problemas encontrados ao compilar para windows depois da última atualização do MinGW
Showing
5 changed files
with
26 additions
and
2 deletions
Show diff stats
draw.c
@@ -27,6 +27,12 @@ | @@ -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 | #include <gtk/gtk.h> | 36 | #include <gtk/gtk.h> |
31 | #include <math.h> | 37 | #include <math.h> |
32 | #include <pw3270.h> | 38 | #include <pw3270.h> |
mouse.c
@@ -98,7 +98,7 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr) | @@ -98,7 +98,7 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr) | ||
98 | break; | 98 | break; |
99 | 99 | ||
100 | case GDK_2BUTTON_PRESS: // Double click - Select word | 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 | lib3270_ring_bell(GTK_V3270(widget)->host); | 102 | lib3270_ring_bell(GTK_V3270(widget)->host); |
103 | break; | 103 | break; |
104 | 104 |
@@ -27,6 +27,12 @@ | @@ -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 | #include <pw3270.h> | 36 | #include <pw3270.h> |
31 | #include <lib3270.h> | 37 | #include <lib3270.h> |
32 | #include <lib3270/session.h> | 38 | #include <lib3270/session.h> |
properties.c
@@ -27,6 +27,12 @@ | @@ -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 | #include <gtk/gtk.h> | 36 | #include <gtk/gtk.h> |
31 | #include <lib3270.h> | 37 | #include <lib3270.h> |
32 | #include <lib3270/session.h> | 38 | #include <lib3270/session.h> |
widget.c
@@ -27,6 +27,12 @@ | @@ -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 | #include <gtk/gtk.h> | 36 | #include <gtk/gtk.h> |
31 | #include <pw3270.h> | 37 | #include <pw3270.h> |
32 | #include <lib3270.h> | 38 | #include <lib3270.h> |
@@ -336,7 +342,7 @@ static void v3270_class_init(v3270Class *klass) | @@ -336,7 +342,7 @@ static void v3270_class_init(v3270Class *klass) | ||
336 | #ifdef WIN32 | 342 | #ifdef WIN32 |
337 | // http://git.gnome.org/browse/gtk+/tree/gdk/win32/gdkcursor-win32.c | 343 | // http://git.gnome.org/browse/gtk+/tree/gdk/win32/gdkcursor-win32.c |
338 | // http://www.functionx.com/win32/Lesson02b.htm | 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 | "ibeam", // V3270_CURSOR_UNPROTECTED | 347 | "ibeam", // V3270_CURSOR_UNPROTECTED |
342 | "wait", // V3270_CURSOR_WAITING | 348 | "wait", // V3270_CURSOR_WAITING |